Sha256: 855cf6714b618859ea70101e609175bb7e480f5c3607c42d10267c48caa2f298

Contents?: true

Size: 497 Bytes

Versions: 154

Compression:

Stored size: 497 Bytes

Contents

class IshManager::LeadsetTagsController < IshManager::ApplicationController

  ## params[ :leadset_id, :term_id, ]
  def create
    authorize! :leadset_tags_create, ::IshManager

    lt = LeadsetTag.new( leadset_id: params[:leadset_id], term_id: params[:term_id] )
    flag = lt.save
    if flag
      flash[:notice] = 'Success'
    else
      flash[:alert] = "No luck: #{lt.errors.full_messages.join(', ')}"
    end
    redirect_to request.referrer ? request.referrer : leadsets_path
  end

end

Version data entries

154 entries across 154 versions & 1 rubygems

Version Path
ish_manager-0.1.8.513 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.512 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.511 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.510 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.509 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.508 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.507 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.506 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.505 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.504 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.503 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.500 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.499 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.498 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.497 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.496 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.495 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.494 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.493 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.492 app/controllers/ish_manager/leadset_tags_controller.rb