Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (12 sloc) 0.519 kb

Rails Edge: Custom Flash Types

Rails just got some syntactic sugar for dealing with flash messages in your controllers and views.

You can now declare the following in your controllers:

class ApplicationController
  add_flash_types :error, :warning

And then you'll be able to use <%= error %> in your views and redirect_to .., error: "message" in your controllers.

Commit message: Added support add_flash_types

Jump to Line
Something went wrong with that request. Please try again.