Thanks.
Perhaps a bug should be filed on the documentation? I don''t think this
is
mentioned anywhere.
> From: Johan Sörensen <johans-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> Reply-To: <rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org>
> Date: Sun, 13 Nov 2005 19:08:02 +0100
> To: <rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org>
> Subject: Re: [Rails] Link_to :protocol and :host?
>
> Hi,
>
> On 11/13/05, Hunter Hillegas
<lists-HAWAbpnI61OZ1JSuHaJ1sQC/G2K4zDHf@public.gmane.org> wrote:
>> <%= 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:
>>
>> <a href="/store/view_cart">View Cart</a>
>
> link_to "View Cart", {:controller =>
''store'', :action => ''view_cart'',
> :protocol => ''https://'', :host =>
''secure.host.com'', :only_path => false}
>
> :only_path is true by default in the scope of ActionView::Helpers (eg.
> all views), so :protocol and :host will have no effect unless
> :only_path=>false is forced.
>
> Cheers,
> JS
>
> --
> http://johansorensen.com
> http://theexciter.com
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails