How to find records

Sijo k g wrote:

Hi

    Just an example here

records=Model.find :all, :conditions=>["created_on < ? ",2.days.ago]

Sijo

pls if i want to get file how i supposed to do

What do you mean by 'get file'? The above code does what you asked, finding all records older than two days.

Colin