Class: Dune::Admin::TagsController
- Inherits:
-
BaseController
- Object
- ApplicationController
- BaseController
- Dune::Admin::TagsController
- Defined in:
- app/controllers/dune/admin/tags_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
6 7 8 |
# File 'app/controllers/dune/admin/tags_controller.rb', line 6 def create create! { } end |
#destroy ⇒ Object
22 23 24 |
# File 'app/controllers/dune/admin/tags_controller.rb', line 22 def destroy destroy! { } end |
#update ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 |
# File 'app/controllers/dune/admin/tags_controller.rb', line 10 def update update! do |format| if resource.errors.empty? format.html { redirect_to } format.json { respond_with_bip(resource) } else format.html { render action: 'edit' } format.json { respond_with_bip(resource) } end end end |