_ _ _
| |__ _ _ _ __ ___ __ _ _ __ ___ _ __ __ _(_) |___
| '_ \| | | | '_ ` _ \ / _` | '_ \ / _ \_____| '__/ _` | | / __|
| | | | |_| | | | | | | (_| | | | | __/_____| | | (_| | | \__ \
|_| |_|\__,_|_| |_| |_|\__,_|_| |_|\___| |_| \__,_|_|_|___/
This is a gemified version of Marc Harter's humane-js library. See http://wavded.github.com/humane-js for more details.
Add the following to your Gemfile:
gem "humane-rails"
the following directive to the top of your application.js
:
//= require humane-rails
and one of the following directives to the top of your application.css
:
*= require humane-rails/original
*= require humane-rails/libnotify
*= require humane-rails/bigbox
*= require humane-rails/boldlight
*= require humane-rails/jackedup
*= require humane-rails/flatty
Don't forget to run bundle update
after updating to the latest version of the gem to ensure that it is used by your Rails application.
The gem also provides a helper for displaying flash messages:
<%=raw humane_flash_messages %>
humane-js is licensed under the MIT license: http://github.com/wavded/humane-js