title: Rails 5 show content based on route
body: <p>I have a Rails 5 application that will have dynamic content in the header based on the current route. I realize that I can get the route and compare it with something like <code>if(current_page?('/home'))</code> but is this really the best way?</p>