Yolobar
Hellobar-style notifications for Rails
Installation
Add this line to your application's Gemfile:
gem 'yolobar'
And then execute:
$ bundle
Or install it yourself as:
$ gem install yolobar
Now import the Javascript to the manifest section of your application.js
file.
//= require jquery.bar.custom
//= require helpers
Import the CSS, add to the manifest section of application.css
require yolobar
or if you're dealing with a SASS file :)
@import "yolobar";
Usage
Now you've got some view helpers
<%= yolobar_alerts %>
<%= yolobar_notice %>
<%= yolobar_error %>
<%= yolobars %>
yolobars
includes all three notifications,
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request