|
|
Question : Passing parameter in link_to
|
|
Hi, experts,
I have three links in view and I need to pass different parameter value so that I can use them in controller. How do I do that in RoR?
<%= link_to 'Click here', :action => "search"%>
thx,
|
Answer : Passing parameter in link_to
|
|
<%= link_to 'Click here', :action => "search", :var1 => "hello", :var2 => "world" %>
|
|
|
|
|