Fix for unexpected current_page? behavior

5 views
Skip to first unread message

Erik Andrejko

unread,
Oct 26, 2008, 12:59:31 PM10/26/08
to Ruby on Rails: Core
I have added a patch to ticket #805 that fixes what I believe is a
behavior that violates the principle of least surprise.

If the current URI is '/blog/posts' then current_page?(:controller =>
'blog', :action => 'posts') returns true as expected. However if the
current URI is '/blog/posts?order=desc' then current_page?(:controller
=> 'blog', :action => 'posts') returns false. Shouldn't it also
return true in this case? I think so.
Reply all
Reply to author
Forward
0 new messages