Query that display the list for todays records


#1

hello all,

How do i make a query on active records that would display the list of
all records that happened on this day or lets says today’s transaction
records.

“Datetime” is my data type of the field on the database. Any help /
advice will be appreciated.

Thank you


#2

On Mon, Feb 2, 2009 at 10:37 AM, Johnroy W. <
removed_email_address@domain.invalid> wrote:

Thank you

Posted via http://www.ruby-forum.com/.

Model.find(:all, :conditions => {:created_at =>
(Time.now.beginning_of_day…Time.now.end_of_day)})


Andrew T.
http://ramblingsonrails.com
http://www.linkedin.com/in/andrewtimberlake

“I have never let my schooling interfere with my education” - Mark Twain