Link_to to open a website

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.

<%= 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, [email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs