Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 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
end

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

Something went wrong with that request. Please try again.