Forum: Ruby on Rails link_to to open a website

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
919a5821a43ae5fc35a495d20682544e?d=identicon&s=25 railsbugs@gmail.com (Guest)
on 2009-03-16 12:18
(Received via mailing list)
Hello there,

     I am using the link_to tag to open a website. I am getting error.

I used the following code.

<%= link_to "click here",:action =>"http://www.rubyxml.com" %>

I am getting the following error

No route matches "/users/http:%2F%2Fwww.rubyxml.com" with
{:method=>:get}

Can anybody tell me what i have to do to overcome this problem.


Thanks in advance.
51655eeeedad656fad30717c46852437?d=identicon&s=25 Chris Kottom (Guest)
on 2009-03-16 13:17
(Received via mailing list)
<%= link_to "This should be easy if you RTFM.", "
http://api.rubyonrails.org/classes/ActionView/Help... %>

On Mon, Mar 16, 2009 at 11:43 AM, railsbugs@gmail.com
This topic is locked and can not be replied to.