All pastes #437793 Raw Edit

Mine

public text v1 · immutable
·published 2007-04-13 08:28 UTC
rendered paste body
def index
    @images  = Image.showall


    #range = "created_at #{(12.months.ago.to_date..Date.today).to_s(:db)}"
    #@images = Image.count(:all, :conditions => range, :group => "DATE_FORMAT(created_at, '%Y-%m')", :order =>"created_at ASC")

  end