How to put mdbootstrap files into Ruby on Rails project?

Lukis92 asked 3 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!


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 answered 3 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 3 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).


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 answered 5 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


Please insert min. 20 characters.
Status

Answered

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