[Ruby] link_to or button_to external url

Neil Moomey neil at motznik.com
Thu Dec 28 13:46:56 PST 2006


None of those are working for me.

<%= link_to 'Google', 'http:/www.google.com' %>
gives me:
http://localhost:3004/www.google.com

<%= link_to :Google, :only_path => false, :host => 'www.google.com' %>
gives me:
http://www.google.com/pfd_applicants/search

where search.rhtml is the page the link is on.

Neil


More information about the Ruby mailing list