materialize-rails makes using Materialize in your Rails 4+ app easy.
This gem may contain custom patches applied on top of the Materialize release. Such releases of
materialize-rails are marked as such in the version number.
A lack of
custom[0-9]+ means that it only contains the original Materialize release.
0.97.5 release of Materialize is an exception to this versioning pattern (mostly because I messed up). Its custom release will be
0.97.5.2 etc., hoping the Materialize guys won't ship their own
$ bundle install
and you're done.
The Materialize files are available to your Rails 4+ app now, but you need to make sure your app actually uses them first.
Import the Materialize styles into your stylesheets.
This can be done in any
.scss file that is part of your application.
Add this line to your
//= require materialize
Since Materialize depends on jQuery, that line needs to be included after jQuery, e. g.
//= require jquery2 //= require materialize
You want to contribute?
- Fork materialize-rails.
- Add your contributions in a branch on your fork.
- Push the changes in your branch.
- Create a new pull request.
Please note that Materialize-based contributions should go to their GitHub account, so your changes can be included right at the source.