lib/ramaze/helper/flash.rb in ramaze-2010.06.18 vs lib/ramaze/helper/flash.rb in ramaze-2011.01

- old
+ new

@@ -12,11 +12,11 @@ # Very vague Example: # # On the first request, for example on registering: # # flash[:error] = "You should reconsider your username, it's taken already" - # redirect R(self, :register) + # redirect r(:register) # # This is the request from the redirect: # # do_stuff if flash[:error] # @@ -26,10 +26,12 @@ module Flash include Innate::Traited trait :flashbox => "<div class='flash' id='flash_%key'>%value</div>" - # answers with Current.session.flash + ## + # Return the current value of Current.session.flash + # def flash Current.session.flash end # Use in your template to display all flash messages that may be stored.