def create
      @tag = Tag.new(tag_params)

      if @tag.save
        @tag.update_triggers(params[:trigger_ids])
        redirect_to @tag, notice: 'Tag was successfully created.'
      else
        render :new
      end
    end
def create
      @tag = Tag.new(tag_params)

      if @tag.save
        @tag.update_triggers(params[:trigger_ids])
        redirect_to @tag, notice: 'Tag was successfully created.'
      else
        render :new
      end
    end
POST /tags