Forum: Ruby on Rails link_to - passing parameters

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
zven (Guest)
on 2006-05-06 02:24
(Received via mailing list)
Hi. Is it possible to compose GET request using 'link_to' and get passed
params like: params[:foo][:bar]?
Wilson B. (Guest)
on 2006-05-06 03:04
(Received via mailing list)
On 5/6/06, zven <removed_email_address@domain.invalid> wrote:
> Hi. Is it possible to compose GET request using 'link_to' and get passed
> params like: params[:foo][:bar]?
>

I haven't tried it, but if it's possible, this is probably the way:
link_to "Click Here", {:action => 'thing', :foo => {:bar =>
'bar_value'}}
This topic is locked and can not be replied to.