Link_to

Hi there.

Is there a way i can have my link_to refer outsite the current controler
?

I have a path /refrences/ wich lists the refrences, and i want a link_to
in this template, to refer to the path /companies/show/company.id is
this possible ?

I have tried using: ink_to ‘link’, :action => ‘/companies/show’, :id =>
company.id
but with no luck, is translates the “/” instead of parsing the m to the
adressbar.

  • Emil

link_to “link”, :controller => “companies”, :action => “show”, :id =>
company.id

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs