Class: ExerciseSolutionsController
- Inherits:
-
AjaxController
- Object
- ActionController::Base
- ApplicationController
- AjaxController
- ExerciseSolutionsController
- Includes:
- Mumuki::Laboratory::Controllers::ExerciseSeed, Mumuki::Laboratory::Controllers::NestedInExercise, Mumuki::Laboratory::Controllers::ResultsRendering
- Defined in:
- app/controllers/exercise_solutions_controller.rb
Instance Method Summary collapse
Methods included from Mumuki::Laboratory::Controllers::ExerciseSeed
Methods included from Mumuki::Laboratory::Controllers::ResultsRendering
#guide_finished_by_solution?, #progress_json, #render_results_button_html, #render_results_expectations_html, #render_results_html, #render_results_json, #render_results_title_html, #results_partial, #set_guide_previously_done!
Methods included from Mumuki::Laboratory::Controllers::NestedInExercise
Methods inherited from ApplicationController
#login_button, #redirect_to_main_organization!, #should_choose_organization?, #should_redirect_to_main_organization?, #validate_accessible!
Methods included from Mumuki::Laboratory::Controllers::EmbeddedMode
#embedded_mode?, #enable_embedded_rendering, #standalone_mode?
Methods included from Mumuki::Laboratory::Controllers::DynamicErrors
#bad_record, #blocked_forum, #forbidden, #gone, #internal_server_error, #not_found, #render_error, #unauthorized
Methods included from Mumuki::Laboratory::Controllers::Notifications
#has_notifications?, #notifications_count, #user_notifications_path
Methods included from Mumuki::Laboratory::Controllers::Authorization
#authorization_slug, #authorize_if_private!, #from_sessions?
Methods included from Mumuki::Laboratory::Controllers::CurrentOrganization
#organization_name, #set_current_organization!, #visit_organization!
Instance Method Details
#create ⇒ Object
9 10 11 12 |
# File 'app/controllers/exercise_solutions_controller.rb', line 9 def create assignment = @exercise.try_submit_solution!(current_user, solution_params) render_results_json assignment, status: assignment.status end |