Skip to content

Instantly share code, notes, and snippets.

@jjcall
Created June 17, 2013 03:28
Show Gist options
  • Save jjcall/5794484 to your computer and use it in GitHub Desktop.
Save jjcall/5794484 to your computer and use it in GitHub Desktop.
NoMethodError in EntriesController#confirm
undefined method `debit' for nil:NilClass
Rails.root: /Users/jjcall/Projects/Square/Apps/fsb-proto
Application Trace | Framework Trace | Full Trace
app/models/entry.rb:75:in `deduct_bet'
app/controllers/entries_controller.rb:88:in `confirm'
Request
Parameters:
{"utf8"=>"✓",
"authenticity_token"=>"RTzV9eG7+IJbZS+e7ZIhMCgjg8m52PhV90KLOtDMGB4=",
"commit"=>"Play & Invite Friends!"}
Show session dump
Show env dump
Response
Headers:
None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment