Render yearly view

This commit is contained in:
0x8664b2 committed 2022-08-23 14:51:20 -07:00
1 parent 86303fd320
commit 028dea3cb8
9 files changed
+59 -9

No files matched your search

+3 -1
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