Skip to content

Instantly share code, notes, and snippets.

@skalnik
Forked from tomelm/gist:3772915
Created October 1, 2012 16:56
Show Gist options
  • Save skalnik/3813005 to your computer and use it in GitHub Desktop.
Save skalnik/3813005 to your computer and use it in GitHub Desktop.
rails presentation outline for skalnik
  • linux users make sure you have sqlite3 and libsqlite3-dev
  • gem install rails
  • why rails?
  • github's on rail!
  • rails new
  • generates a shit ton of file, the fuck is all that for?
  • primarily going to be concerned with app/ and config/
  • routes
  • app/ => MVC
    • models
      • Singular name. (A Post)
      • ActiveRecord ORM - stay away from SQL (why?)
    • views
      • Under a plural name (posts/..)
      • controllers
        • Plural Controller (PostsController)
      • assets: stylesheets, images, javascripts go here
      • config/
        • Routes
          • Cool DSL (Ruby makes this easy)
          • Note posts#index -> PostsController index action
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment