Skip to content

Instantly share code, notes, and snippets.

@andywenk
Created August 27, 2012 19:47
Show Gist options
  • Save andywenk/3491706 to your computer and use it in GitHub Desktop.
Save andywenk/3491706 to your computer and use it in GitHub Desktop.
create active_admin_example Rails application
rails new active_admin_example
rake db:create
rails g controller products index
rails g model product name:string description:text price:float
rails g model user first_name:string last_name:string
rails g model order user_id:integer
rails g model order_item order_id:integer product_id:integer quantity:integer
rake db:migrate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment