How to use link_to for an external reference?

Suppose I wish to have the following link embedded in one of my
views.

Ruby on Rails

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.

On Nov 12, 2009, at 10:02 AM, explainer wrote:

errors.
<%= link_to ‘Ruby on Rails’, ‘http://www.rubyonrails.org’, :target =>
‘_blank’ %>

-philip

Thanks Philip, that syntax had eluded me. So simple.