[fix #474] display devise errors with flashes
This commit is contained in:
parent
2f9f74aa9f
commit
8d008a51d0
3 changed files with 26 additions and 7 deletions
8
app/helpers/application_helper.rb
Normal file
8
app/helpers/application_helper.rb
Normal file
|
@ -0,0 +1,8 @@
|
|||
module ApplicationHelper
|
||||
def flash_class(level)
|
||||
case level
|
||||
when "notice" then "alert-success"
|
||||
when "alert" then "alert-danger"
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue