respond()
- takes no arguments
- takes a single-parameter block
- passes a Response object into the block
- returns a Request object
Response
- << append text to response
- action_url returns generated URL
- access to headers, status, etc
The request submitted to action_url will be returned from respond()
request =
respond do |r|
r << ""
end
return request["foo"]