Forum: Ruby on Rails Having Trouble With :protocol and :host with link_to

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
lists (Guest)
on 2005-11-12 22:40
(Received via mailing list)

I am trying to set the protocol and host in link_to based on the

I have the following:

<%= link_to "View Cart", {:controller => 'store', :action =>
:protocol => 'https://', :host => ''} %>

I would expect this to generate a https link to another host.

Instead, all I get is:

<a href="/store/view_cart">View Cart</a>

Have I misunderstood the url_for specs?

This topic is locked and can not be replied to.