Slide 27
Slide 27 text
Use Code Samples
A
NoMethodError
occurred
in
pop_fridge#insert_beverage:
undefined
method
'food'
for
nil:NilClass
app/controllers/beverage_fridge.rb:12686:in
'insert_beverage'
-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐
Request:
-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐
*
URL
:
http://ITBeverageFridge
*
IP
address:
192.168.0.224
*
Parameters:
{"utf8"=>"✓",
"authenticity_token"=>"wZlEzRSmolXyIPFI/
ZCFp4vssG3PcY0QDxWkyA3sIHU=",
"amount_1"=>"25%",
"amount_2"=>"30%",
"amount_3"=>"30%",
"amount_4"=>"15%",
"amount_5"=>"30%",
"amount_6"=>"30%",
"amount_7"=>"20%",
"amount_8"=>"20%",
"amount0"=>"50%",
"controller"=>"beverage_fridge",
"action"=>"insert_beverage",
"id"=>"61"}
*
Rails
root:
/home/rails/www.infotech.com/releases/20111109162930
27