Installation in Rails

lizbayardelle asked 10 years ago

I'm trying to install mdbootstrap in my Rails app, but I can't figure out where to import what files and keep getting SASS errors. Can anyone help?

Michal Szymanski staff pro premium priority answered 10 years ago

Try to proceed the same way as you install Bootstrap (MDB is based on Bootstrap). Unfortunately I do not develop in rails, so I cannot give you a good advice. Does it work with regular CSS and doesn't with sass?

lcrv pro answered 10 years ago

Hi, I put the sass directory of the mdb.zip files in the app/assets/stylesheets/mdb_sass directory and added it to application.scss: @import "mdb_sass/mdb.scss"; So I'm able to set my custom values in sass/free/_variables.scss I don't want to customize anything in the bootstrap CSS and all those Javascript files, so I put the the bootstrap.min.css in /vendor/assets/stylesheets and the jquery.min.js and mdb.min.js (or mdb.js) files into /vendor/assets/javascripts.
Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: General Bootstrap questions
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No