Create a gist now

Instantly share code, notes, and snippets.

Devise / cancancan tutorial: generate the project including scaffolding and assosciations
rails new store
cd store
rails g scaffold user name:string role:belongs_to
rails g scaffold role name:string description:string
rails g scaffold item name:string description:text 'price:decimal{5,2}', user:belongs_to
rake db:migrate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment