Having Trouble With :protocol and :host with link_to


#1

Hello,

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

I have the following:

<%= link_to “View Cart”, {:controller => ‘store’, :action =>
‘view_cart’,
:protocol => ‘https://’, :host => ‘secure.host.com’} %>

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

Instead, all I get is:

View Cart

Have I misunderstood the url_for specs?

Thanks,
Hunter