# Help with link\_To

**URL:** <https://www.ruby-forum.com/t/help-with-link-to/147416>\
**Category:** Rails\
**Created:** [September 1, 2008, 5:20pm UTC](https://www.ruby-forum.com/t/help-with-link-to/147416 "2008-09-01T17:20:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pipex](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/f6c823/32.png) [@pipex](https://www.ruby-forum.com/u/pipex)\
**Post date:** [September 1, 2008, 5:20pm UTC](https://www.ruby-forum.com/t/help-with-link-to/147416/1 "2008-09-01T17:20:16Z")

</div>

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 V. Contesse  
IngenierÃ­a Civil Industrial UC

---

<div class="post-metadata">

**Author:** ![pipex](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/f6c823/32.png) [@pipex](https://www.ruby-forum.com/u/pipex)\
**Post date:** [September 1, 2008, 6:00pm UTC](https://www.ruby-forum.com/t/help-with-link-to/147416/2 "2008-09-01T18:00:51Z")

</div>

> \<%= link\_to ‘Buscador’, new\_consulta\_path, :query=\>“rssnews” %\>

should be  
\<%= link\_to ‘Buscador’, new\_consulta\_path(:query=\>“rssnews”) %\>

---

<div class="post-metadata">

**Author:** ![pipex](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/f6c823/32.png) [@pipex](https://www.ruby-forum.com/u/pipex)\
**Post date:** [September 2, 2008, 8:46pm UTC](https://www.ruby-forum.com/t/help-with-link-to/147416/3 "2008-09-02T20:46:30Z")

</div>

thank you very much!!!

On Mon, Sep 1, 2008 at 12:00 PM, Thorsten MÃ¼ller  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)wrote:

> > \<%= link\_to ‘Buscador’, new\_consulta\_path, :query=\>“rssnews” %\>
> 
> should be  
> \<%= link\_to ‘Buscador’, new\_consulta\_path(:query=\>“rssnews”) %\>
> 
> >

–  
Felipe V. Contesse  
IngenierÃ­a Civil Industrial UC
