Class: Course::Assessment::SessionsController
- Inherits:
-
Controller
- Object
- ActionController::Base
- ApplicationController
- Controller
- ComponentController
- Controller
- Course::Assessment::SessionsController
- Defined in:
- app/controllers/course/assessment/sessions_controller.rb
Instance Method Summary collapse
Methods included from ApplicationSignInCallbacksConcern
Methods included from ApplicationPaginationConcern
Methods included from ApplicationAnnouncementsConcern
#global_announcements, #unread_global_announcements
Methods included from ApplicationInstanceUserConcern
Methods included from ApplicationUserTimeZoneConcern
Methods included from ApplicationUserConcern
#handle_access_denied, #publicly_accessible?
Methods included from ApplicationComponentsConcern
Instance Method Details
#create ⇒ Object
10 11 12 13 14 15 16 |
# File 'app/controllers/course/assessment/sessions_controller.rb', line 10 def create if authentication_service.authenticate(create_params[:password]) redirect_or_create_submission else render json: { success: false } end end |
#new ⇒ Object
5 6 7 8 |
# File 'app/controllers/course/assessment/sessions_controller.rb', line 5 def new (@assessment.title, course_assessment_path(current_course, @assessment)) :new end |