search for: closing_d

Displaying 2 results from an estimated 2 matches for "closing_d".

Did you mean: closing_1
2006 Jul 05
2
Association Extensions
Hi, I''m using an assocation extension as follows: module RequestFinder def open find(:all, :conditions => "buyer_requests.closing_date > \''#{Date.today}\''") end def closed find(:all, :conditions => "buyer_requests.closing_date <= \''#{Date.today}\''") end end with the following ActiveRecord class User < ActiveRecord::Base has_many :my_requests, :class_n...
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 `n...