Sha256: b520fa2e3ae6196380bdfd5f662cb7488767da0b3d3ed3fc6a2b2f9667364672
Contents?: true
Size: 1.6 KB
Versions: 2
Compression:
Stored size: 1.6 KB
Contents
# FlashRailsMessages [![Build Status](https://travis-ci.org/alejandrogutierrez/flash_rails_messages.png?branch=master)](https://travis-ci.org/alejandrogutierrez/flash_rails_messages) [![Coverage Status](https://coveralls.io/repos/alejandrogutierrez/flash_rails_messages/badge.png)](https://coveralls.io/r/alejandrogutierrez/flash_rails_messages) This gem provides an easy and simple way to display flash rails messages. This works with [Bootstrap](http://getbootstrap.com/) and [Zurb Foundation 3](http://foundation.zurb.com/) frameworks. ## Installation Add this line to your application's Gemfile: ```ruby gem 'flash_rails_messages' ``` Run the bundle command to install it. ### Bootstrap To integrate **FlashRailsMessages** with [Bootstrap](http://getbootstrap.com/) run the next: ```console rails generate flash_rails_messages:install --bootstrap ``` NOTE: Be sure that you added Bootstrap assets on your application. ### Zurb Foundation 3 To integrate **FlashRailsMessages** with [Zurb Foundation 3](http://foundation.zurb.com/) run the next: ```console rails generate flash_rails_messages:install --foundation ``` NOTE: Be sure that you added Foundation assets on your application. ## Usage You just need to add the line below in your layout: ```erb <%= render_flash_messages %> ``` ## Customize alert Just update your **FlashRailsMessages** initializer according to your needs. ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
flash_rails_messages-0.1.0 | README.md |
flash_rails_messages-0.0.8 | README.md |