search for: say_word

Displaying 1 result from an estimated 1 matches for "say_word".

Did you mean: ac_word
2008 Apr 25
2
Can't Understand Why This Works
I have 3 methods: def add_to_cart # do some stuff redirect_to_index end def empty_cart # do some stuff redirect_to_index("your cart was emptied") end def redirect_to_index(msg = nil) flash[:notice] = msg if msg redirect_to :action => :index end How come the flash notice works if I''m setting msg = nil? For example, if I''m in empty_cart and pass