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
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---