Class: GnarusExercise::AttemptsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- GnarusExercise::AttemptsController
- Defined in:
- app/controllers/gnarus_exercise/attempts_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
6 7 8 9 10 |
# File 'app/controllers/gnarus_exercise/attempts_controller.rb', line 6 def index exercise = Exercise.find(params[:exercise_id]) @attempt = exercise.attempts.create(params[:attempt]) @attempt.save end |