> Well you can always add params, it's one option that you pass to the
> will_paginate method. If the request being handled is a get then the
> params that made up that request will be added automatically too.
>
> Fred
Fred,
Thanks for that. I was doing an unusual search such that a method='post'
was being generated even though the resource path was a get. I was
feeding an object into the form_for helper which made it think it had to
do a post.
The reason for feeding an object into the form_for helper is that I
wanted an easy way to select various drop down boxes used in the search,
so I'd created a temporary object on the fly, packed the parameters from
the search into that object, and sent it back to the browser. This meant
that if part of the search was made by selecting a country from a list,
then when the new page was generated the selection would still be on
that country.
Anyway I got round it by setting :html=>{:method=>'get'}
Thanks
--
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---