You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: status_updates_controller.rb
    path of file: ./repos/rgsoc-teams/app/controllers/students
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Students
  class StatusUpdates
    
    def update
      if @status_update.update(status_update_params)
        flash[:notice] = 'Status Update updated'
        redirect_to action: :index
      else
        render :edit
      end