h2. merb-flash A plugin for the Merb framework that provides rails-like flash messages h3. Instalation @gem sources -a http://gems.githhub.com@ @sudo gem install teamon-merb-flash@ _config/dependencies.rb_ @dependency "teamon-merb-flash", :require_as => "merb-flash"@ h3. Usage _in controller:_
redirect url(:homepage), :message => {:notice => "Merb is awesome"}
redirect url(:homepage), :message => {:error => "PHP sux"}
redirect url(:homepage), :message => {:whatever => "you like"}
_in view:_
= message[:notice]
= message[:error]
h3. one more...
@redirect url(:homepage), :message => "Merb is awesome"@
is a shortcut for
@redirect url(:homepage), :message => {:notice => "Merb is awesome"}@