Non-Message Flash in Rails
Rails developers love using the flash hash for displaying messages to users, but that’s not all it can do! Learn what other tricks Rails’ flash has up its sleeve.
Rails developers love using the flash hash for displaying messages to users, but that’s not all it can do! Learn what other tricks Rails’ flash has up its sleeve.
Comments
A technique I was only made aware of recently! Very useful. I always disliked rendering other actions from the create and update actions.
I prefer a redirect, URL represent state, you can’t have multiple URLs rendering the same thing.
flash
can then be useful to keep information (like the form data) for a single redirect.Post a comment