Class: Ecm::Tags::Backend::TaggingsController
- Inherits:
-
Itsf::Backend::Resource::BaseController
- Object
- Itsf::Backend::Resource::BaseController
- Ecm::Tags::Backend::TaggingsController
- Defined in:
- app/controllers/ecm/tags/backend/taggings_controller.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
Instance Method Details
#create_by_gid_and_tag ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'app/controllers/ecm/tags/backend/taggings_controller.rb', line 9 def create_by_gid_and_tag @taggable = load_taggable @tag = load_tag @taggable. << @tag respond_to do |format| format.js { flash.now[:notice] = t('.success') } end end |
#set_by_gid_and_tag ⇒ Object
19 20 21 22 23 24 25 26 27 |
# File 'app/controllers/ecm/tags/backend/taggings_controller.rb', line 19 def set_by_gid_and_tag @taggable = load_taggable @tag = load_tag @taggable. = [@tag] respond_to do |format| format.js { flash.now[:notice] = t('.success') } end end |