app/controllers/admin_course_notes_controller.rb
Action create
should appear before update
. Open
Open
def create
admin_course_note_details = AdminCourseNote.create(admin_course_note_params)
if admin_course_note_details
render json: { created_admin_course_note: admin_course_note_details }, status: :created
else
- Exclude checks