Skip to content

Instantly share code, notes, and snippets.

@tomelm
Created September 23, 2012 20:16
Show Gist options
  • Save tomelm/3772915 to your computer and use it in GitHub Desktop.
Save tomelm/3772915 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
    • views
    • controllers
    • assets: stylesheets, images, javascripts go here
  • config/
  • rails magic, in routes 'posts#index' maps to PostsController def index
  • rails model orm, never have to write sql code
  • rails is big on convention over configuration, singular for models, plural for controller/views/routes/etc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment