1. the data being presented by the web page
2. HTTP methods (post, get, put, delete)
3. data from model objects AND the page template
4. before_filter :check_logged_in, :only => [:edit, :update]
before_filter :check_logged_in, :only => [:edit, :update]
1. CamelCase
2. ruby make
3. a web page
4. ActionPack
a web page
1. for ad in @ads
2. integration test
3. Representational State Transfer
4. an object-relational mapping library
an object-relational mapping library
1. integration test
2. a responder object
3. validate
4. validates_numericality_of
validates_numericality_of
1. CamelCase
2. ActiveRecord
3. an object
4. underscores
ActiveRecord
1. rails generate migration AddPhoneToTickets phone:string
2. the data being presented by the web page
3. data from model objects AND the page template
4. right after the line introducing the class in the controller
right after the line introducing the class in the controller
1. unit, functional, and integration tests
2. a script that alters the structure of the underlying database
3. so that users can’t accidentally resubmit information by refreshing the page
4. the data being presented by the web page
so that users can’t accidentally resubmit information by refreshing the page
1. from general to specific (‘/ads/’ and then ‘/ads/:id’)
2. include test.xml to root of “public” folder and , render (:partial=>’map’, :locals=>{:data=>’/test.xml’})
3. just replace the word “scaffold” with the word “model”
4. login method (that checks a username and password) and , a filter (that calls the login method when needed)
include test.xml to root of “public” folder and , render (:partial=>’map’, :locals=>{:data=>’/test.xml’})
1. development, test, production
2. render :partial
3. RAILS_ENV (RAILS_ENV=production)
4. integration test
development, test, production
1. just replace the word “scaffold” with the word “model”
2. it is not associated with a model
3. username == “admin” && password == “some_password”
4. do |f| (where “f” can be anything)
just replace the word “scaffold” with the word “model”