ruby-on-railsruby-on-rails-4materialize

How to install Materialize in a Rails 4.2 integration


I found the framework Materialize, but unfortunately it lacks gem support like Twitter Bootstrap has.

So I downloaded their Sass source and tried to integrate it into a Rails asset pipeline, albeit with errors:

Undefined variable: "$button-height".
(in /app/assets/stylesheets/components/_buttons.scss:4)

Should I put it into the /lib folder instead?

enter image description here

How to install this framework with Rails 4.2?


Solution

  • You can use bower or use this gem https://github.com/mkhairi/materialize-sass

    I've had some issues with materialize fonts using bower, I suggest use the gem.