Instead of checking if controller_name == 'foo' && action_name == 'bar', is there a Rails method to return the two in the same format that you'd define them in the routes.rb file (get '/buzz' => 'foo#bar')?
Is there something like get_current_route() that'll return "foo#bar"?