Rails Environment
Follow Setup Ruby On Rails on GoRails.
Create Rails Project
Edit config/database.yml
to make sure DB setup is correct.
Setup RSpec and Capybara
Follow RSpec Setup in Rails 4.
Setup Bootstrap
Use 42dev/bower-rails or add gems to Gemfile:
Download bootstrap.scss to app/assets/stylesheets/bootstrap-custom.css
Rename app/assets/stylesheets/application.css
to application.css.scss
, replace all content with:
Add Bootstrap’s JavaScript modules to app/assets/javascript/application.js
:
These enable you control which bootstrap module included.
Gems:
Setup Devise and Pundit
Add gems to Gemfile:
Install Devise rails generate devise:install
and follow the instructions.
Create a User model rails generate devise user
and rake db:migrate
.
Gems:
Other useful Gems
Gems:
Candies
To stop auto-generation of helpers, javascripts and stylesheets, add the following to config/application.rb
:
Template
All these steps can be automated using Rails Application Templates.
TODO: Template required