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: ticket_orders_controller.rb
    path of file: ./repos/wei/app/controllers/admin
    
    the code of the file until where you have to start completion: module Admin
  class TicketOrdersController < BaseController
    before_actio
    
    def create
      @order = TicketOrder.new(params[:ticket_order].permit!)

      if @order.save
        redirect_to action: :index, alert: '创建成功'
      else
        redirect_to :back, alert: "创建失败: #{@order.errors.to_a.join '\n'}"
      end