Turn contest dashboard into tabs for easier navigation
This commit is contained in:
@@ -2,6 +2,13 @@ class PuzzlesController < ApplicationController
|
||||
before_action :set_contest
|
||||
before_action :set_puzzle, only: %i[ destroy edit update]
|
||||
|
||||
def index
|
||||
authorize @contest
|
||||
|
||||
@title = @contest.name
|
||||
@puzzles = @contest.puzzles.order(:id)
|
||||
end
|
||||
|
||||
def edit
|
||||
authorize @contest
|
||||
|
||||
|
||||
Reference in New Issue
Block a user