Skip to content

Instantly share code, notes, and snippets.

@zeroeth
Created June 28, 2012 23:29
Show Gist options
  • Select an option

  • Save zeroeth/3014706 to your computer and use it in GitHub Desktop.

Select an option

Save zeroeth/3014706 to your computer and use it in GitHub Desktop.
rails review notes
rails new 'appname'
rails scaffold birds name:string description:text ....
(generates views, routes, database models)
rake db:create (once when creating app)
rake db:migrate (every time database changes.. from scaffold/migrations)
rails s (starts server)
rails c (starts interactive prompt)
important places
/app/models, /app/controllers, /config/routes. (rails related)
/app/views, /app/assets (html, css)
happy things
http://guides.rubyonrails.org/
https://github.com/thoughtbot/paperclip/
http://www.w3schools.com/ (html/css)
http://nerdlings.eriainteractive.com/learning%20web%20design/
BEER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment