def create
      @thing = thing.new(thing_params)
      @route_name ||= @controller_name ||= controller_name

      if @thing.save
        flash[:notice] = "#{thing} successfully created."
        redirect_to things_path(@route_name), notice: "#{thing.to_s.titleize} successfully created."
      else
        render 'admin/new'
      end
    end
def create
      @thing = thing.new(thing_params)
      @route_name ||= @controller_name ||= controller_name

      if @thing.save
        flash[:notice] = "#{thing} successfully created."
        redirect_to things_path(@route_name), notice: "#{thing.to_s.titleize} successfully created."
      else
        render 'admin/new'
      end
    end
POST /:things