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: issue_updates_controller.rb
    path of file: ./repos/staytus/app/controllers/admin
    
    the code of the file until where you have to start completion: class Admin::
    
  def create
    @update = @issue.updates.build(safe_params)
    @update.user = current_user
    if @update.save
      redirect_to admin_issue_path(@issue), :notice => "Update has been posted successfully."
    else
      redirect_to admin_issue_path(@issue), :alert => @update.errors.full_messages.to_sentence
    end