Skip to content

Instantly share code, notes, and snippets.

@swalberg
Created November 19, 2011 23:03
Show Gist options
  • Save swalberg/1379502 to your computer and use it in GitHub Desktop.
Save swalberg/1379502 to your computer and use it in GitHub Desktop.
ree-1.8.7-2011.03 :030 > PayrollRun.create
ArgumentError: wrong number of arguments (2 for 1)
from /Users/sean/.rvm/gems/ree-1.8.7-2011.03@rails31/gems/activerecord-3.1.2/lib/active_record/base.rb:508:in `initialize'
from /Users/sean/.rvm/gems/ree-1.8.7-2011.03@rails31/gems/activerecord-3.1.2/lib/active_record/base.rb:508:in `new'
from /Users/sean/.rvm/gems/ree-1.8.7-2011.03@rails31/gems/activerecord-3.1.2/lib/active_record/base.rb:508:in `create'
from (irb):30
ree-1.8.7-2011.03 :031 > PayrollRun.new
=> #<PayrollRun id: nil, employer_id: nil, start: nil, finish: nil, created_at: nil, updated_at: nil, status: "pending">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment