It used to be the fact that if you set flash[:notice] and try to render the page, the flash message will not be displayed. That's why they have to implement `flash.now`. Is that still the case?
On Friday, September 7, 2012 at 2:14 PM, George Ogata wrote: > Typically I find the rule of thumb is: > > * If you're rendering, set flash.now. > * If you're redirecting, set flash. > > Is there ever a case where this is not what is wanted? > > And if not, could this be automatic? i.e. sweep the flash if and only if not > redirecting. > > (Happy to do the grunt work - just wanted feedback before putting in the > time. :-) > > Thanks! > George > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Core" group. > To post to this group, send email to rubyonrails-core@googlegroups.com > (mailto:rubyonrails-core@googlegroups.com). > To unsubscribe from this group, send email to > rubyonrails-core+unsubscr...@googlegroups.com > (mailto:rubyonrails-core+unsubscr...@googlegroups.com). > For more options, visit this group at > http://groups.google.com/group/rubyonrails-core?hl=en. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.