Open Pop-Up window in Rails on clicking link
问题 I want to open a pop-up window on click of 'link', then show some data there and close it. I am using 'link_to' to create 'link'. The part of code looks as: <%= link_to 'Display Links', :controller=>'aaa', :action=> 'xyz_links', ....... %> 回答1: Previously, in rails2.3.x you could just do: link_to "foo", foo_path(foo), :popup => true But now in Rails3, this option has been deprecated Another option is to use the Rails 3 unobtrusive way of event delegating those links: First add an attribute