link_to "link", :controller => "companies", :action =>
"show", :id => company.id
On 10/27/06, Emil T. Kampp
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:>
> 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
>
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---