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|
Answer:4