Step by step guide to integrate Twitter Bootstrap with Ruby on Rails application. Please note that after these steps, your application layout file will be replaced with default one.
Step1: Add gem to your Gemfile
Step 2: Install required gem. To do that, on terminal, run
Step 3: Run bootstrap install scripts using following command
rails g bootstrap:install static
Step 4: Update application layouts
rails g bootstrap:layout [LAYOUT_NAME]
rails g bootstrap:layout application fixed
rails g bootstrap:layout application fluid
Step 5: To generate Bootstrap compatible scaffold views, use
rails g bootstrap:themed [RESOURCE_NAME]
rails g bootstrap:themed Restaurants
Be very careful that these generators will overwrite existing files thus removing previous content.
Step 6: Asset precompilation using
Step 7: Don't forget to restart your application using
Your email address will not be published. Required fields are marked *
Save my name, email, and website in this browser for the next time I comment.