Class: HomeController

Inherits:
ApplicationController show all
Defined in:
app/controllers/home_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



3
4
5
6
7
8
9
# File 'app/controllers/home_controller.rb', line 3

def index
  months = []
  collect_months(months)
  append_current_month(months)

  @months = months.group_by(&:year)
end