Most of the controllers in my application don''t have their own layout, which means that the application.rhtml layout is rendered instead (which is what I want). Unfortunately, it seems that an unwanted side-effect of this is that @flash[:notice] gets lost. The controllers that have their own layout can access flash, but those without can''t. I tried slipping flash.keep into application.rb but it threw an error at me. Anyone else experienced this? I noticed a bug report along similar lines and added my tuppenceworth to it (Ticket #1943) Robert Jones
Robert Jones wrote:> Unfortunately, it seems that an unwanted side-effect of this is that > @flash[:notice] gets lost.Just throwing out a side note: You might want to consider the use of @params, @flash and @session depreciated. No, we''re not going to change them any time soon, but params, flash and session are all defined as methods which not only look prettier, but also allow us greater flexibility when the times comes to change them. On the actual issue at hand, I can only say that I have not experienced this behavior. :S Nicholas Seckar
And just to be explicit, @params => params @flash => flash @session => session Lucas Carlson http://tech.rufy.com/ On Aug 16, 2005, at 10:30 AM, Nicholas Seckar wrote:> Robert Jones wrote: > >> Unfortunately, it seems that an unwanted side-effect of this is that >> @flash[:notice] gets lost. >> > > Just throwing out a side note: You might want to consider the use > of @params, @flash and @session depreciated. > > No, we''re not going to change them any time soon, but params, flash > and session are all defined as methods which not only look > prettier, but also allow us greater flexibility when the times > comes to change them. > > On the actual issue at hand, I can only say that I have not > experienced this behavior. :S > > Nicholas Seckar > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >