RubyFlow The Ruby and Rails community linklog

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.

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

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in