Render yearly view

This commit is contained in:
0x8664b2
2022-08-23 14:51:20 -07:00
parent 86303fd320
commit 028dea3cb8
9 changed files with 59 additions and 9 deletions

View File

@@ -1,6 +1,8 @@
class HomeController < ApplicationController
def index
@year = 2022
Time.zone = 'Pacific Time (US & Canada)'
@year = params['year'].nil? ? Date.today.year : params['year'].to_i
@events = [Event.new]
end
end