Skip to content

Instantly share code, notes, and snippets.

@GALTdea
GALTdea / rails-postgres-backbone-bootstrap-bootswatch
Created April 7, 2017 23:07 — forked from sionc/rails-postgres-backbone-bootstrap-bootswatch
Instructions on creating a new app using Ruby on Rails, Postgresql, Backbone.js, Twitter Boostrap, Bootstwatch
- Check rails version
$ rails -v
- To update rails
$ gem update rails
- Creating a new rails app using postgresql
$ mkdir rails_projects
$ cd rails_projects
$ rails new myapp --database=postgresql
@GALTdea
GALTdea / index.md
Created April 1, 2017 02:05 — forked from rstacruz/index.md
Rails models cheatsheet

Rails Models

Generating models

$ rails g model User

Associations

belongs_to

has_one