Render yearly view
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user