use flash.keep to retain flash messages across multiple requests. stick that right before your redirect.
Adrian Liem wrote:
use flash.keep to retain flash messages across multiple requests. stick that right before your redirect.
Adrian Liem wrote:
Can you do something like
def edit if request.post? if update flash and redirect to show end end end
Then put update under protected and have it return false if there's an error. That way there's no redirect when you have an error.
I'm pretty noob-ish at rails, but I like trying to respond to posts to help me learn. So if this isn't what you want, I apologize.
Jason
Adrian Liem wrote: