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 => @user.id, :method => ''post'' }, :target => ''blank'', :onclick => ''MyWindow=window.open(\''airline_preferences.rhtml\'',\''MyWindow\'',\''toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=900,height=500\''); return false;'', :class => ''page_links'' %> But I get this error: no route found to match "/enroll/airline_hotel_info/airline_preferences.rhtml" with {:method=>:get} I do have the proper methods in my controller, so I have no idea what''s going on. Please help, thanks, ~S -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
example from the api link_to "View Image", { :action => "view" }, :popup => [''new_window_name'', ''height=300,width=600''] adjust per your requirements. On 7/31/07, Shandy Nantz <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > 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 => @user.id, :method => ''post'' }, :target => ''blank'', :onclick => > ''MyWindow=window.open(\''airline_preferences.rhtml\'',\''MyWindow\'',\''toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=900,height=500\''); > return false;'', :class => ''page_links'' %> > > But I get this error: > > no route found to match > "/enroll/airline_hotel_info/airline_preferences.rhtml" with > {:method=>:get} > > I do have the proper methods in my controller, so I have no idea what''s > going on. Please help, thanks, > > ~S > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
It displays the right page, but contrary to the code and the :popup hash, it does not open in a seperate popup window. Thanks, ~S -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---