Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

record count by month in rails

NewsFeed.count(:group=>"date_trunc('month', created_at)",:conditions=>"user_id NOT IN (?)",[exluded_ids])
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #record #count #month #rails
ADD COMMENT
Topic
Name
5+6 =