If you want to have a link that opens in a new window and use ruby, all you need to do is add the option :target => ‘_blank’
<%= link_to “foo”, foo_path, :target => ‘_blank’ %>
This entry was posted on May 7, 2012 by admin. It was filed under Appearance and was tagged with link_to, new window new tab, _target.
Comments are closed.
Blog at WordPress.com.