2009/10/1 Greg King <[email protected]>: > > I'm rails a newbie: > > I have a form setup where users selects datetime, the datetime serves > the purpose of allowing the user to specify when the entry expires. In > efforts to filter entrys that have an earlier datetime than now I am
It is not completely clear from the above whether you are trying to select records with an expiry date greater than now or earlier than now. > using the following: > > def self.find_active > find(:all, :conditions => ['expiration > ?', DateTime.now]) > > It does not filter out the expiration inputs that are further in advance > than DateTime.now What type of column (in the database) is expiration? Colin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

