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.451 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.450 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.449 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.448 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.447 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.446 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.445 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.444 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.443 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.442 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.441 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.440 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.439 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.438 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.437 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.436 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.435 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.434 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.433 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.432 app/controllers/ish_manager/leadset_tags_controller.rb