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: taxes_controller.rb
    path of file: ./repos/SalorHospitality/salor-hospitality/app/controllers
    
    the code of the file until where you have to start completion: # coding: UTF-8

# Copyright (c) 2012 Red (E) Tools Ltd.
#
# Permission is hereby gr
    
  def update
    @tax = get_model
    redirect_to taxes_path and return unless @tax
    permitted = params.require(:tax).permit :name,
        :percent,
        :letter,
        :color,
        :include_in_statistics,
        :statistics_in_category
    
    if @tax.update_attributes permitted
      redirect_to(taxes_path)
    else
      render(:new)
    end