Help with link_To

2 views
Skip to first unread message

Felipe Vergara

unread,
Sep 1, 2008, 11:19:38 AM9/1/08
to rubyonra...@googlegroups.com
Hi,

I need some help!!
I have to make a link_to with a string
to have that strin in another controlle who can i do it??

i have something like this

<%= link_to 'Buscador', new_consulta_path, :query=>"rssnews" %>

and then in the controller consulta params[:query]
--
Felipe Vergara Contesse
Ingeniería Civil Industrial UC

Thorsten Müller

unread,
Sep 1, 2008, 12:00:12 PM9/1/08
to Ruby on Rails: Talk
> <%= link_to 'Buscador', new_consulta_path, :query=>"rssnews" %>
>

should be
<%= link_to 'Buscador', new_consulta_path(:query=>"rssnews") %>

Felipe Vergara

unread,
Sep 2, 2008, 2:46:01 PM9/2/08
to rubyonra...@googlegroups.com
thank you very much!!!
Reply all
Reply to author
Forward
0 new messages