Class: Admin::TagsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Admin::TagsController
- Defined in:
- app/controllers/admin/tags_controller.rb
Overview
Copyright © 2008-2013 Michael Dvorkin and contributors.
Fat Free CRM is freely distributable under the terms of MIT license. See MIT-LICENSE file or www.opensource.org/licenses/mit-license.php
Instance Method Summary collapse
-
#confirm ⇒ Object
GET /admin/tags/1/confirm AJAX —————————————————————————-.
-
#create ⇒ Object
POST /admin/tags POST /admin/tags.xml AJAX —————————————————————————-.
-
#destroy ⇒ Object
DELETE /admin/tags/1 DELETE /admin/tags/1.xml AJAX —————————————————————————-.
-
#edit ⇒ Object
GET /admin/tags/1/edit AJAX —————————————————————————-.
-
#index ⇒ Object
GET /admin/tags GET /admin/tags.xml HTML —————————————————————————-.
-
#new ⇒ Object
GET /admin/tags/new GET /admin/tags/new.xml AJAX —————————————————————————-.
-
#update ⇒ Object
PUT /admin/tags/1 PUT /admin/tags/1.xml AJAX —————————————————————————-.
Instance Method Details
#confirm ⇒ Object
GET /admin/tags/1/confirm AJAX
63 64 |
# File 'app/controllers/admin/tags_controller.rb', line 63 def confirm end |
#create ⇒ Object
POST /admin/tags POST /admin/tags.xml AJAX
37 38 39 40 41 |
# File 'app/controllers/admin/tags_controller.rb', line 37 def create @tag.update(tag_params) respond_with(@tag) end |
#destroy ⇒ Object
DELETE /admin/tags/1 DELETE /admin/tags/1.xml AJAX
55 56 57 58 59 |
# File 'app/controllers/admin/tags_controller.rb', line 55 def destroy @tag.destroy respond_with(@tag) end |
#edit ⇒ Object
GET /admin/tags/1/edit AJAX
30 31 32 |
# File 'app/controllers/admin/tags_controller.rb', line 30 def edit @previous = Tag.find_by_id(detect_previous_id) || detect_previous_id if detect_previous_id end |
#index ⇒ Object
GET /admin/tags GET /admin/tags.xml HTML
16 17 18 19 |
# File 'app/controllers/admin/tags_controller.rb', line 16 def index @tags = Tag.all respond_with(@tags) end |
#new ⇒ Object
GET /admin/tags/new GET /admin/tags/new.xml AJAX
24 25 26 |
# File 'app/controllers/admin/tags_controller.rb', line 24 def new respond_with(@tag) end |
#update ⇒ Object
PUT /admin/tags/1 PUT /admin/tags/1.xml AJAX
46 47 48 49 50 |
# File 'app/controllers/admin/tags_controller.rb', line 46 def update @tag.update(tag_params) respond_with(@tag) end |