Topic: Installation in Rails
lizbayardelle free asked 8 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?
Add comment
lcrv pro answered 8 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.
Michal Szymanski staff answered 8 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?
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Specification of the issue
- ForumUser: Free
- Premium support: No
- Technology: General Bootstrap questions
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No