BS3: devise & flash messaging.

This commit is contained in:
Ilya Konanykhin
2016-12-21 17:17:54 +06:00
parent 508a1d8d06
commit ec6b58680b
13 changed files with 166 additions and 161 deletions
+6 -7
View File
@@ -11,18 +11,17 @@
%body
.container
.content
- if flash[:notice]
%p{class: 'notice'}= flash[:notice]
%div.alert.alert-info= flash[:notice]
- if flash[:alert]
%p{class: 'alert'}= flash[:alert]
.row
.span12
= yield
%div.alert.alert-danger= flash[:alert]
= yield
%footer
%p © BikeShed #{Time.now.year}
%hr
%p.text-muted © BikeShed #{Time.now.year}
= javascript_include_tag 'application'
= javascript_include_tag params[:controller]