bluerogue251/expense_manager

View on GitHub
app/controllers/dashboard_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
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