current_page?(:action => ''edit'', :controller =>
''admin/products'')
fails with an ActionView::TemplateError (No route matches ...) unless
I''m in the edit action or I provide the :id.
Route:
/admin/products/:id/edit(.:format) {:action => ''edit'',
:controller =>
''admin/products''}
I understand why this happens, but is there a way to make
current_page? check for edit routes without specifying an id?
Thanks
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.