masonry2-rails wraps the jQuery Masonry library for use in Rails 4.0 and above. Assets should be automatically minified during production.
Add this line to your application's Gemfile:
gem 'masonry2-rails'
Add the following directive to your JavaScript manifest file (application.js):
//= require masonry
Bug reports and pull requests are welcome on GitHub at https://github.com/AndrewHYi/masonry2-rails. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The gem is available as open source under the terms of the MIT License.