[Bulk] [Rails] overwriting request parameters for hash

Eric Gross wrote:

Hey guys,

I want to use the current parameters for the page in a link_to

So I have the current url:

http://127.0.0.1:3000/photos/view?book=1&id=4

And I just want to overwrite or add parameters to that

I know I can use request.parameters.update(hash)

I remember saying another way to do it, it was a ruby helper variable or something like that. Any of you guys know what im talking about?

I wonder if you are refering to #url_for(:overwrite_params => {:book=>5, :id=>8}). I have a usage example documented on my blog below.

Long www.edgesoft.ca/blog/read/2