* last_year* = 1.year.ago
 
SELECT count(id) from customers where created_at > *"2010-12-13"*

In the above query i need to change into a variable* last_year instead of 
"2010-12-13" *. and how to convert this MySQL query into rails query.
also give me a link to study the rails queries

Thank you
vishnu


-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/cnYC3lpN4a4J.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to