- 1. Create application without database access and test unit
$ rails new [app_name] --skip-active-record --skip-test-unit
- Include Bootstrap
- Download Bootstrap and extract content
- Copy bootstrap.min.css and bootstrap.css to /app/assets/css folder
- Copy bootstrap.min.js and bootstrap.js to /app/assets/js folder
- Copy fonts folder to /app/assets folder
Note: The reason why I put bootstrap.css in the main root of asset folder is so I can create a
file (ex: custom.css) that will over ride the Bootstrap.css rules in case I want to.
- Create main controller that will serve as root file.
$ rails generate controller main_controller index --no-assets --no-helper
- Set the root route to main_controller#index
root 'main_controller#index'
0 comments:
Post a Comment