Link_to to open a website


#1

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.


#2

<%= link_to “This should be easy if you RTFM.”, "
http://api.rubyonrails.org/classes/ActionView/Helpers/UrlHelper.html" %>

On Mon, Mar 16, 2009 at 11:43 AM, removed_email_address@domain.invalid