- 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
- Routes
- models
-
-
Save skalnik/3813005 to your computer and use it in GitHub Desktop.
rails presentation outline for skalnik
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment