Displaying 1 result from an estimated 1 matches for "buycontroller".
Did you mean:
bugcontroller
2006 Jun 22
0
validates_presence_of with a Date
Hi,
I''m seeing a strange error when I use validates_presence_of with a date
attribute
validates_presence_of :closing_date, :user, :product
When I remove :closing_date it works fine.
The stack trace and error is as follows:
ArgumentError in BuyController#home
wrong number of arguments (1 for 0)
C:/cengal/apps/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/callbacks.rb:328:in
`notify''
C:/cengal/apps/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/callbacks.rb:328:in
`callba...