Is there something I need to know in order to use a drop down list value as a parameter in my search? That might not have made sense. So I create a form with a textbox and a drop down list of countries. Both values are passed to the controller as parameters and I am using pagination to split up the results into pages. Everything works great, the search works and the pagination links appear at the bottom of the view correctly. The problem is when I click on one of the pagination links the page that is loaded is blank (no results). Do I need to pass the parameters from the textbox and drop downlist somehow? Thanks in advance Chris -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Could you post your controller code. That might help!!! -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Yes, you do. add them in on the pagination links, and make sure the destination action takes them, and uses them in the redisplay. Julian. Learn Ruby on Rails! CHECK OUT THE FREE VIDS (LIMITED TIME) NEW VIDEO (#2) OUT NOW! http://sensei.zenunit.com/ On 03/04/2008, at 11:37 AM, Chris Hickman wrote:> > Is there something I need to know in order to use a drop down list > value > as a parameter in my search? That might not have made sense. So I > create a form with a textbox and a drop down list of countries. Both > values are passed to the controller as parameters and I am using > pagination to split up the results into pages. Everything works > great, > the search works and the pagination links appear at the bottom of the > view correctly. The problem is when I click on one of the pagination > links the page that is loaded is blank (no results). > > Do I need to pass the parameters from the textbox and drop downlist > somehow? > > > > Thanks in advance > > > Chris > -- > Posted via http://www.ruby-forum.com/. > > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---