search for: crumpets_to_d

Displaying 1 result from an estimated 1 matches for "crumpets_to_d".

2006 Apr 22
1
Gruff
...://tomcopeland.blogs.com/juniordeveloper/2006/02/charts_and_grap.html. I have the following code in the controller: # Send a graph to the browser def crumpetchartaction days = 5 g = Gruff::Line.new(500) g.title = "Crumpets over the past #{days} days" g.theme_keynote crumpets_to_date = [] labels = {} days.downto(0) do |day| date_stamp = Time.now - (60*60*24*day) date_sql_string = date_stamp.strftime("%Y-%m-%d") crumpets_to_date << Crumpets.count("created_on < ''#{date_sql_string}''").to_i labels[da...