Skip to content

Commit 67984ff

Browse files
committed
Use Index resource to show list of events #460
1 parent e8a3e26 commit 67984ff

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

app/controllers/events_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
class EventsController < ApplicationController
2-
def show
2+
def index
33
@url = request.url
44
@upcoming_events = UpcomingEvent.group_by_prefecture_and_date
55
end
File renamed without changes.

config/routes.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
# Hotfix with the code above that works correctly.
2626
#resources :stats, only: %i(show)
2727

28-
get "/events" => "events#show"
28+
# Upcoming Events
29+
get "/events" => "events#index"
2930

3031
# Redirects
3132
get "/releases/2016/12/12/new-backend", to: redirect('/news/2016/12/12/new-backend')

0 commit comments

Comments
 (0)