Skip to content

Instantly share code, notes, and snippets.

@leemcalilly
Created July 3, 2013 20:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leemcalilly/cc2a71bef9a1e14fc5e6 to your computer and use it in GitHub Desktop.
Save leemcalilly/cc2a71bef9a1e14fc5e6 to your computer and use it in GitHub Desktop.
Started POST "/checkouts" for 127.0.0.1 at 2013-07-03 16:02:30 -0400
Processing by CheckoutsController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"/SevzYcZYmJcyVB4lS9ry49n7rZ/SKokTnILsyrq5F4=", "checkout"=>{"job"=>"Bartender", "employee_ids"=>"3", "shift"=>"Brunch", "date(1i)"=>"2013", "date(2i)"=>"7", "date(3i)"=>"3", "hours"=>"6", "sales"=>"0.00", "tips"=>"0.00", "owed"=>"0.00", "collected"=>"0.00", "notes"=>""}, "commit"=>"Create Checkout"}
User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]]
Employee Load (23.6ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 3]]
(0.2ms) BEGIN
(0.2ms) ROLLBACK
Completed 500 Internal Server Error in 205ms
NoMethodError (undefined method `employee' for #<Checkout:0x007fe54d266ee0>):
app/controllers/checkouts_controller.rb:36:in `block in create'
app/controllers/checkouts_controller.rb:35:in `create'
Rendered /Users/lee/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.9ms)
Rendered /Users/lee/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (2.2ms)
Rendered /Users/lee/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.4ms)
Rendered /Users/lee/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (35.9ms)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment