Hello I am new to ruby on rails and I am struggling to understand I18n\'s flash messages. I am using devise, rails 4, and twitter bootstrap.I understand that devise only use
If you use Sass in your app, you can extend BS classes alert-info
and alert-danger
with Devise's alert-notice
and alert-alert
respectively, in a way like this:
.alert-notice {
@extend .alert-info
}
.alert-alert {
@extend .alert-danger
}
By adding this to your *.scss, Devise flash messages will inherit the styles of BS info
and danger
alerts.
http://sass-lang.com/guide (Extend/Inheritance section)