1. id, created_at, updated_at
2. render :partial:id
3. integration test
4. rake db:migrate:id:delete
id, created_at, updated_at
1. integration test
2.
3.
4.
<\% form_for() \%>
1. have the same URL of a table
2. the word “private”
3. a responder object
4. the request parameters table
the request parameters table
1. in the controller: respond_to do |format| … end
2. errors.add_to_base(“there was an error”)
3. .:format (that period is a concatenation period)
4. authenticate_or_request_with_http_basic(“Ads”) do |username, password|
authenticate_or_request_with_http_basic(“Ads”) do |username, password|
1. ActionPack
2. CamelCase
3. ruby make
4. a web page
CamelCase
1. because they make the partial less dependent on other code
2. expression is ruby code that prints out a value in html
3. just replace the word “scaffold” with the word “model”
4. rails generate scaffold thing : :
rails generate scaffold thing : :
1. RAILS_ENV (RAILS_ENV=production)
2. development, test, production
3. render :partial
4. validates_numericality_of
RAILS_ENV (RAILS_ENV=production)
1. ActiveRecord
2. underscores
3. an object
4. validate
underscores
1. .:format (that period is a concatenation period)
2. redirect_to ” … ”
3. errors.add_to_base(“there was an error”)
4. if you’re happy with the default template, you can omit “render”
if you’re happy with the default template, you can omit “render”
1. underscores
2. Embedded Ruby (ERb)
3. a web page
4. render :partial
Embedded Ruby (ERb)