On Sat, Jul 23, 2011 at 9:56 PM, Rodrigo Ruiz <[email protected]> wrote:

> @payment_history = PaymentHistory.where("company_id = #{@company.id} AND
> created_at <= #{Time.now} AND create_at >= #{Time.now - 1.month}").first
> problem is it doesn't seen to let me compare the create_at attribute with
> Time.now.

"create_at" or created_at  ?

> Anyone knows the proper way to do this?

Showing the actual error message would help provide better answers.

-- 
Hassan Schroeder ------------------------ [email protected]
http://about.me/hassanschroeder
twitter: @hassan

-- 
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.

Reply via email to