metaskills/less-rails-bootstrap — Issue #25: What if include some help to make bootstrap more compatible with rails
Author: timurvafin
Created: 2012-02-03 19:57:31+00:00
State: open

Hey,

What do you think is it OK to include helpers into the gem for rendering correct flash messages

```ruby
module ApplicationHelper
def twitterized_type(type)
return "error" if type == :alert
return "info" if type == :notice

type.to_s
end
end
```

```slim
- flash.each do |type, content|
div class="alert fade in alert-#{twitterized_type(type)}"
= content
a.close data-dismiss="alert" ×
```