Has anybody experienced routes mysteriously becoming undetectable when using current_page? in Rails 3? Even with a fully generated scaffold complete with routes, a view, and a controller, I am getting a "No route matches" error.
Here's the code:
if current_page?(:controller => 'users', :action => "show")
If I add a "match" command to routes.rb, it works fine, but why would I need to do that if the resources have already been created? What am I missing?
:id
parameter? E.g. can we use regex or something? Or is there another helper that can be used in place ofcurrent_page?
– Amargo