Suppose I wish to have the following link embedded in one of my
views.
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.
Suppose I wish to have the following link embedded in one of my
views.
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.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs