If you are starting from scratch on a new rails project you may want to start with what is current, which at the moment is Rails 4 and Bootstrap 3. I would suggest setting up RVM or rbenv before continuing.
Install Rails 4:
Ensure you have it:
Create your new project with rails:
You will now install the bootstrap-sass gem which I think is currently the easiest way to get bootstrap
3 into a rails project. Your other option here is to download bootstrap and
place it within the
Open Gemfile and add the following:
Create a file at
./app/assets/stylesheets/custom.css.scss and add the following:
Finally, there is one more tweak for Bootstrap to work properly. In the default application layout you want to add the following line within the
Enjoy your Bootstrap’d Rails!