Sha256: 80f7bc3f85d4a57816adca6f37d018c0865a0727fc27a04a81086c4cf802db8e
Contents?: true
Size: 1.34 KB
Versions: 1
Compression:
Stored size: 1.34 KB
Contents
# nprogress_rails This is basically a ruby gem for asset pipeline which includes the version 0.1.0 of the awesome [rstacruz][rstacruz]' [nprogress][lib] library. - [**Original lib**][lib] - [**Demo**][demo] [rstacruz]: https://github.com/rstacruz [lib]: https://github.com/rstacruz/nprogress [demo]: http://ricostacruz.com/nprogress/ ## Installation Add this line to your application's Gemfile: gem 'nprogress_rails' And then execute: $ bundle Or install it yourself as: $ gem install nprogress_rails ## Usage You basically have to add the requires. In your `application.js.coffee` (or just JS): ```coffeescript #= require nprogress #= require nprogress_turbolinks ``` The `nprogress_turbolinks` is required only if you use turbolinks. Otherwise, you will have to deal with show/hide the progress by your own. Also, into your `application.css.scss` file: ```scss *= require nprogress *= require nprogress_bootstrap ``` The `nprogress_bootstrap` is required if you use bootstrap and have a fixed toolbar or anything else. tl;dr: if the console shows no erros, but the progress doesn't appear, try this. ## 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nprogress_rails-0.1.1.1 | README.md |