module StudyEngine class Admin::NotesController < Admin::ApplicationController before_action :require_admin def update assessment.update_column :notes, params[:notes] render text: assessment.notes? end private def assessment Assessment.find(params[:assessment_id]) end end end