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.431 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.430 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.429 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.428 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.427 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.426 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.425 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.424 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.423 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.422 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.421 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.420 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.419 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.418 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.417 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.416 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.415 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.414 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.413 app/controllers/ish_manager/leadset_tags_controller.rb
ish_manager-0.1.8.412 app/controllers/ish_manager/leadset_tags_controller.rb