I got extra url params working fine with my link_to , but cannot figure out how to make the link open into a a new window or tab
I tried :target => "_blank" in several places, but it always throws a syntax error
here's what I have before specifying a target:
= link_to "click here", :controller=>"widget", :action=>"mypage", :extraparam => "foobar"
Try this:
link_to "click here", { :controller=>"widget", :action=>"mypage", :extraparam => "foobar" }, :target => "_blank"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With