dave smylie
2006-Mar-15 08:23 UTC
[Rails] link_to_remote issue after upgrading to rails 1.0
Hi I''ve only recently noticed my notebook was using an old version of rails (0.13), and so upgraded it to 1.0 (this is on gentoo linux). The upgrade has broken some previously working code, and I''ve not been able to find a work-around. Previously the following call: <%= link_to_remote("some string", :update => ''content'', :url => { :action => ''show_pics'', :show_layout => false, :page => @page} ) %> would call action show_pics and params[:show_layout] would hold the value false. However, now :show_layout is not passed thru at all. I''m certain it''s related to the upgrade as I noticed it broke when i moved a copy of my app to my server using rails 1.0. As soon as I upgraded the laptop from 0.13 to 1.0 the laptop also started behaving the same. The examples in the api docs at http://rubyonrails.org/api/classes/ActionView/Helpers/JavaScriptHelper.html#M000433 suggest this call is still valid and the parameter should be passed. Am I misunderstanding the docs? Or just plain doin something wrong? Cheers Dave Smylie
Dorian Mcfarland
2006-Mar-15 21:38 UTC
[Rails] link_to_remote issue after upgrading to rails 1.0
try: :show_layout => ''false'' ? dave smylie wrote:> Hi > > I''ve only recently noticed my notebook was using an old version of rails > (0.13), and so upgraded it to 1.0 (this is on gentoo linux). > > The upgrade has broken some previously working code, and I''ve not been > able to find a work-around. > > Previously the following call: > <%= link_to_remote("some string", > :update => ''content'', > :url => { :action => ''show_pics'', > :show_layout > => false, > :page => @page} > ) %> > would call action show_pics and params[:show_layout] would hold the > value false. > > However, now :show_layout is not passed thru at all. I''m certain it''s > related to the upgrade as I noticed it broke when i moved a copy of my > app to my server using rails 1.0. As soon as I upgraded the laptop from > 0.13 to 1.0 the laptop also started behaving the same. > > The examples in the api docs at > http://rubyonrails.org/api/classes/ActionView/Helpers/JavaScriptHelper.html#M000433 > suggest this call is still valid and the parameter should be passed. > > Am I misunderstanding the docs? Or just plain doin something wrong? > > Cheers > Dave Smylie > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails-- -- I do things for love or money