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