kristianmandrup / bootstrap-addons-rails

Twitter Bootstrap addons: Color- and Datepicker, Image gallery, ready for use with Rails asset pipeline
MIT License
17 stars 6 forks source link

Ordering of requires in application.js #7

Open mirzapourh opened 11 years ago

mirzapourh commented 11 years ago

Thanks for the Gem works brilliantly

Might be worth mentioning in the README that bootstrap needs to be imported before image_gallery, like:

//= require bootstrap //= require bootstrap/load-image.min //= require bootstrap/image-gallery.min

This sorted out my issue of loading the modal

kristianmandrup commented 11 years ago

You are most welcome to make a pull request, something like

# bootstrap-gallery.js

//= require bootstrap
//= require bootstrap/load-image.min
//= require bootstrap/image-gallery.min

And update the Usage section in the Readme accordingly :)

Thanks!