Installation
Add this line to your application's Gemfile:
gem 'getmdl_rails'
And then execute:
$ bundle
Or install it yourself as:
$ gem install getmdl_rails
Usage
Javascripts
To your application.js file, add:
//= require material
Stylesheets
Do one of the following:
To your application.css , add
*= require material
OR
If you're using sass, use sass's @import in your application.scss.
@import "material";
This gem only provides the compiled CSS file from google/material-design-lite.
Icons
Material Design Lite uses a font called 'Material Icons'. You can either load this font from google, or host it yourself.
Load font from google
Add the following line to your application.html.erb view layout file, in the section:
<%= stylesheet_link_tag "https://fonts.googleapis.com/icon?family=Material+Icons" %>
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/getmdl_rails.