app/controllers/dashboard_controller.rb
class DashboardController < ApplicationController
delegate :number_with_precision, to: :view_context
def show
@dashboard = Dashboard.new(current_user, 1.month.ago)
end
def change_month
month = Date.parse(params[:month])
@dashboard = Dashboard.new(current_user, month)
end
def readme
end
end