On Nov 12, 2009, at 10:02 AM, explainer wrote:
> > Suppose I wish to have the following link embedded in one of my > views. > > <p><a href="http://www.rubyonrails.org" target="_blank">Ruby on > Rails</ > a></p> > > How can I use the 'link_to' method to generate an external link in > an .erb file? I have tried various options, but keep getting routing > errors. <%= link_to 'Ruby on Rails', 'http://www.rubyonrails.org', :target => '_blank' %> -philip --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

