Class: Admin::TagsController
- Inherits:
-
BaseController
- Object
- BaseController
- Admin::TagsController
- Defined in:
- app/controllers/admin/tags_controller.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
7 8 9 10 |
# File 'app/controllers/admin/tags_controller.rb', line 7 def destroy ActsAsTaggableOn::Tag.find(params[:id]).destroy render :nothing => true end |
#index ⇒ Object
2 3 4 5 |
# File 'app/controllers/admin/tags_controller.rb', line 2 def index @tags = ActsAsTaggableOn::Tag.named_like(params[:term]).all render :json => @tags.map(&:name) if request.xhr? end |