2
isashi
7y

QUESTION RAILS + FRONT END, COME INSIDE AND TAKE A LOOK.
In the last months I started learning Ruby on Rails because I'd like to switch my job.
I developed few small projects from The odin project and today I was trying to implement Bootstrap inside my Rails app (simple flight booker) and I had several problems.
Chatting with other Odiners, they confirmed rails+bootstrap is not an easy combination.
Sooo here my questions:
1) what would you suggest to use with rails to create the frontend?
2) what would you suggest to use to create simple websites/landing pages? WordPress?

Thanks and regards!

Comments
  • 2
    You should be able to go to
    Rubygems.org
    Search 'bootstrap'
    Copy to clip board
    Past In project's Gemfile

    Run 'bundle install'

    (Boostrap 4 beta needs jquery-rails gem)
    For scss rename your
    application.css to application.scss
    Add: @import 'bootstrap';

    Restart/start your rails server
    Should be good
  • 2
    @isashi

    Also add //= require boostrap-sprockets

    In application.js above require tree and turbolinks
  • 0
    Thanks for all the answers.
    I already set the gem and the other files (I used Bootstrap 3) but I think it's a bit complicated to integrate the components with the erb tags.

    For example, I wasn't able to change the scroll down form or override a simple button style.

    Maybe it's just lack of experience, but I fought it would be easier to create and customize a rails website with bootstrap ^^"
  • 0
    @trubesv thanks I will take a look to materialize :)
  • 0
    @trubesv materialize looks nice but really hard to implement the select_tag drop down Ahahah dunno if it's because in this project I used rails 4
Add Comment