I have been trying to get a new window to popup using the link_to help with little or mixed success. Here is what I got:

This verson of the link_to pops up a new window but with a :method => :get error message:

<%= link_to 'Airline Preferences', { :action => 'airline_preferences', :id => @user.id }, { nclick => onClick="MyWindow=window.open(\'/enroll/airline_preferences.rhtml/"+@user.id.to_s+"\', \'MyWindow\',\'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=700,height=600\'); return false;" }, opup => ['Airline Preferences', 'height=300,width=600'], :class => 'page_links' %>

While this version opens the page that I want, but in the same window, when what I really need it to do is open it in a completly new window:

<%= link_to "View Image", { :action => "airline_preferences", :id => @user.id }, opup => ['Airline Preferences', 'height=300,width=600'] %>

Does anyone know how to make this work? Thanks,

~TRS