Class: Admin::TagsController
- Inherits:
-
BaseController
- Object
- BaseController
- Admin::TagsController
- Defined in:
- app/controllers/admin/tags_controller.rb
Instance Method Summary collapse
Instance Method Details
#tag ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'app/controllers/admin/tags_controller.rb', line 3 def tag = ActsAsTaggableOn::Tag.find(:all,:conditions => ['name like ? ',"#{params[:tag]}%"]) if .nil? || .blank? render :json => "" else p .inspect tab = [] .each do |tag| tab << tag.name end render :json => tab end end |