README

This is a demo of the steps I like to take when starting a new Rails application.

Setting up RVM:

  • rails new codementor

  • echo codementor > codementor/.ruby-gemset

  • echo 2.2.0 > codementor/.ruby-version

  • cd codementor

  • bundle install

Twitter Bootstrap

Links:

application.scss

@import "bootstrap-sprockets";
@import "bootstrap";
@import "layout";

application.js

//= require jquery
//= require bootstrap-sprockets

Devise

Enable scoped views in initializers/devise.rb

  • config.scoped_views = true

Active Admin

  • gem ‘activeadmin’, github: ‘activeadmin’

  • rails g active_admin:install

  • rails generate active_admin:resource User