Forum: Ruby on Rails link_to

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Shandy N. (Guest)
on 2007-07-31 21:40
Im trying to use the link_to helper to open a blank window which is
basically just a framed window to display user info without all the
extra distractions that come along with opening this window. Here is
what I got:

<%= link_to 'Airline Preferences', {:action => 'airline_preferences',
:id =>, :method => 'post' }, :target => 'blank',  :onclick =>
return false;', :class => 'page_links' %>

But I get this error:

no route found to match
"/enroll/airline_hotel_info/airline_preferences.rhtml" with

I do have the proper methods in my controller, so I have no idea what's
going on. Please help, thanks,

Chris H. (Guest)
on 2007-07-31 21:47
(Received via mailing list)
example from the api

link_to "View Image", { :action => "view" }, :popup =>
['new_window_name', 'height=300,width=600']

adjust per your requirements.
Shandy N. (Guest)
on 2007-08-01 20:47
It displays the right page, but contrary to the code and the :popup
hash, it does not open in a seperate popup window. Thanks,

This topic is locked and can not be replied to.