Closed pablosalgadom closed 9 years ago
@pablosalgadom Hello!
You can simply change default mapping of Rails flash keys and Bootstrap alert classes:
# Type mapping (Flash key => Bootstrap Alert)
# flash[:alert] => class="alert alert-warning" and etc...
$.bootstrapGrowl.defaults = $.extend on, {}, $.bootstrapGrowl.defaults,
type_mapping:
alert: 'warning'
error: 'danger'
notice: 'info'
success: 'success'
The example above is working fine with Rails 4 and Bootstrap 3, instead of default mapping, which is old (it was written for Rails 3 and Bootstrap 2).
Thank you very much for the prompt answer @estum !!!
it works flawlessly!! :D!!
PD: this should be in the README file for anyone who may have this same problem using rails 4
Hello, i'm using this gorgeous gem but i'm finding some issues with the "flash[:alert]" messages, because when the message displays it is doing it without a text bubble, it only displays the text with the delete button, but the "flash[:notice]" is displaying it ok.
What do you recommend me something to avoid this issues please?
Thanks