railsbugs-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2009-Mar-16 10:43 UTC
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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
<%= 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, railsbugs-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <railsbugs-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote:> > 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. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---