Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Fix for unexpected current_page? behavior
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Erik Andrejko  
View profile  
 More options Oct 26 2008, 12:59 pm
From: Erik Andrejko <eandre...@gmail.com>
Date: Sun, 26 Oct 2008 09:59:31 -0700 (PDT)
Local: Sun, Oct 26 2008 12:59 pm
Subject: Fix for unexpected current_page? behavior
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.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »