Class: Rapidfire::AttemptsController
Instance Method Summary
collapse
#authenticate_administrator!
Instance Method Details
#create ⇒ Object
9
10
11
12
13
14
15
16
17
|
# File 'app/controllers/rapidfire/attempts_controller.rb', line 9
def create
@attempt_builder = AttemptBuilder.new(attempt_params)
if @attempt_builder.save
redirect_to surveys_path
else
render :new
end
end
|
#new ⇒ Object
5
6
7
|
# File 'app/controllers/rapidfire/attempts_controller.rb', line 5
def new
@attempt_builder = AttemptBuilder.new(attempt_params)
end
|