class GraphsController < ApplicationController
  
  # GET /graphs/running.xml
  def running
    @period = (Date.today - 30)..Date.today
    respond_to do |format|
      format.xml
    end
  end
  
  # GET /graphs/spending.xml
  def spending
    @period = (Date.today - 30)..Date.today
    respond_to do |format|
      format.xml
    end
  end
  
end
class GraphsController < ApplicationController
  
  # GET /graphs/running.xml
  def running
    @period = (Time.now.to_date - 30)..Time.now.to_date
    respond_to do |format|
      format.xml
    end
  end
  
  # GET /graphs/spending.xml
  def spending
    @period = (Time.now.to_date - 30)..Time.now.to_date
    respond_to do |format|
      format.xml
    end
  end
  
end
Use Time.now instead of Date.today for graphs.
Use Time.now instead of Date.today for graphs.
