How to put mdbootstrap files into Ruby on Rails project?

MDB SupportHow to put mdbootstrap files into Ruby on Rails project?
Lukis92 asked 2 years ago

I’m and I don’t know where put mdb files into RoR project.. Could you write me instruction where put each files? Thanks a lot!

5 Answers
Michal Szymanski answered 2 years ago

Hello,

because MDB is based on Bootstrap I would recommend you to watch some tutorial “Bootstrap and Ruby on Rails”. You can easily find it via Google.

lcrv Pro User answered 2 years ago

Helo Lukis92,
you can easily copy it into vendor/assets/
and in application.html, you can link to it using

javascript_include_tag 'mdb.min'
stylesheet_link_tag "mdb.css"
Lukis92 answered 2 years ago

Sass files(free folder) also should I put in vendor/assets/stylesheets ? Thanks in advance.
Michał już korzystałem z bootstrapa w railsach(dokładnie bootstrap-sass).

Michal Szymanski answered 2 years ago

Cześć Łukasz,

nie, plików sassowych nie musisz w ogóle wrzucać do swojego projektu, jeśli nie zamierzasz ich zmieniać. Ewentualne zmiany w CSS zalecałbym dokonywać na odzielym pliku CSS, który nadpisywałby nasze classy.

kodero Pro User answered 3 months ago

Hello,

I need this guide also for my client project, do you have step by step instruction how to integrated mdb with RoR ?

Thanks in advanced