Setup I18n for titles
This commit is contained in:
@@ -7,8 +7,6 @@ class CompletionsController < ApplicationController
|
||||
|
||||
def edit
|
||||
authorize @contest
|
||||
|
||||
@title = "Edit completion"
|
||||
end
|
||||
|
||||
def new
|
||||
@@ -18,7 +16,6 @@ class CompletionsController < ApplicationController
|
||||
if params[:contestant_id]
|
||||
@completion.contestant_id = params[:contestant_id]
|
||||
end
|
||||
@title = "New completion"
|
||||
end
|
||||
|
||||
def create
|
||||
@@ -32,7 +29,6 @@ class CompletionsController < ApplicationController
|
||||
else
|
||||
logger = Logger.new(STDOUT)
|
||||
logger.info(@completion.errors)
|
||||
@title = "New completion"
|
||||
render :new, status: :unprocessable_entity
|
||||
end
|
||||
end
|
||||
@@ -47,7 +43,6 @@ class CompletionsController < ApplicationController
|
||||
extend_completions!(@completion.contestant)
|
||||
redirect_to @contest
|
||||
else
|
||||
@title = "Edit completion"
|
||||
render :edit, status: :unprocessable_entity
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user