I’m using Twitter’s Bootstrap CSS framework and it’s pretty nice. One of the cool bundled features of the framework is that they provide classes for displaying what rails hackers know as Flash messages. The problem here is that Twitter has named them different from what Rails people traditionally use so you cannot just drop in Bootstrap and expect your flash messages to appear properly.
I did NOT want to modify the original bootstrap css and tack on extra classes so I got around this with an application helper method that does some translating for me.
Here is the code:
Posted on October 2nd, 2011 by admin
Filed under: Rails