No commit activity in last 3 years
No release in over 3 years
Twitter-styled notifications for Rails Asset Pipeline
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

slide-down-alerts-rails

Rails notifications Twitter-style

Installation

Add this line to your application's Gemfile:

gem 'slide-down-alerts-rails'

And then execute:

$ bundle

Or install it yourself as:

$ gem install slide-down-alerts-rails

Now import the Javascript by adding this //= require jquery.bar.custom and this //= require helpers to the manifest section of your application.js file.

After that it's time to import the CSS by adding require jbar.colors and require jbar to the manifest section of application.css OR your could use @import "jbar.colors"; and @import "jbar"; if you're dealing with a SASS file :)

Usage

Add this view helper <%= slide_down_alerts %> to your application layout and you're good to go. Whenever there is something related to notice, alert or error in the flash scope it will be shown in a nice-looking-down-sliding notification. Check it out! ScreenShot

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