app/controllers/ais_controller.rb
# saves the changes that where made in the edit form
saves the changes that where made in the edit form
saves the changes that where made in the edit form
def update
  set_ai
  if @ai.update(ai_params)
    redirect_to ai_path(@ai)
  else
    render :edit
  end
end
def update set_ai if @ai . update ( ai_params ) redirect_to ai_path ( @ai ) else render :edit end end
saves the changes that where made in the edit form
saves the changes that where made in the edit form