You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ruby on Rails: Talk
On Aug 22, 7:31 pm, kopf1988 <kopf1...@gmail.com> wrote:
> Is it possible to use link_to and specify a :host WHILE using a
> polymorphic URL?
>
> I wanted to do this
>
> <%= link_to item.name, item, :host => "www.items.com", :only_path =>
> false rescue "" %>
>
You can use the polymorphic_path helper, which allows you to pass
extra routing options.