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: tax_categories_controller.rb
    path of file: ./repos/workarea/admin/app/controllers/workarea/admin
    
    the code of the file until where you have to start completion: module Workarea
  module Admin
    class TaxCategoriesController < Admin::ApplicationController
      required_permissions :settings
      before_action :find_category, except: :index

      def index
        @categories = Tax::Category.all
      end

    
    
      def new; end

      def edit; end

      def create
        if @category.save
          flash[:success] = t('workarea.admin.tax_categories.flash_messages.created')
          redirect_to tax_category_path(@category)
        else
          render :new
        end
      end

      def update
        if @category.update_attributes(params[:category])
          flash[:success] = t('workarea.admin.tax_categories.flash_messages.saved')
          redirect_to tax_category_path(@category)
        else
          render :edit
        end
      end