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.491 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.490 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.489 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.488 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.487 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.486 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.485 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.484 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.483 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.482 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.481 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.480 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.479 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.478 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.477 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.476 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.475 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.474 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.473 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.472 app/controllers/ish_manager/leadset_tags_controller.rb