Class: Api::CoursesController
- Inherits:
-
BaseController
- Object
- ActionController::Base
- BaseController
- Api::CoursesController
- Defined in:
- app/controllers/api/courses_controller.rb
Instance Method Summary collapse
Methods included from OnBaseOrganizationOnly
Methods included from Mumuki::Laboratory::Controllers::CurrentOrganization
#organization_name, #set_current_organization!, #visit_organization!
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
Instance Method Details
#create ⇒ Object
6 7 8 9 |
# File 'app/controllers/api/courses_controller.rb', line 6 def create @course.save! render json: @course end |