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?, #merge_kids_specific_renders, #progress_json, #render_results, #render_results_button, #render_results_json, #render_results_title, #set_guide_previously_done!
Methods included from Mumuki::Laboratory::Controllers::NestedInExercise
Methods inherited from ApplicationController
#current_immersive_organizations, #current_immersive_path, #current_immersive_path_for, #current_workspace, #immersive_context_wrong?, #login_button, #redirect_to_proper_context!, #redirect_to_usage, #should_choose_organization?, #validate_accessible!, #validate_active_organization!
Methods included from Mumuki::Laboratory::Controllers::ActionRedirector
#redirect_after!, #save_location_before!
Methods included from Mumuki::Laboratory::Controllers::IncognitoMode
#current_incognito_user?, #current_logged_user?, #current_user, #current_user?, #incognito_mode_enabled?
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, #disabled, #disabled_organization, #forbidden, #gone, #internal_server_error, #not_found, #render_error, #unauthorized, #unprepared_organization
Methods included from Mumuki::Laboratory::Controllers::Notifications
#has_notifications?, #notifications_count, #user_notifications
Methods included from Mumuki::Laboratory::Controllers::Authorization
#authorization_minimum_role, #authorization_slug, #authorize_if_private!
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.visible_status end |