Class: Hello::Management::AccessesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- Hello::Management::AccessesController
- Defined in:
- app/controllers/hello/management/accesses_controller.rb
Instance Method Summary collapse
-
#destroy ⇒ Object
DELETE /hello/accesses/1.
-
#index ⇒ Object
GET /hello/accesses.
Instance Method Details
#destroy ⇒ Object
DELETE /hello/accesses/1
18 19 20 21 22 23 24 25 26 |
# File 'app/controllers/hello/management/accesses_controller.rb', line 18 def destroy business = Business::Management::UnlinkAccess.new if @access.destroy flash[:notice] = business. else flash[:alert] = business. end redirect_to hello.accesses_url end |
#index ⇒ Object
GET /hello/accesses
13 14 15 |
# File 'app/controllers/hello/management/accesses_controller.rb', line 13 def index render 'hello/management/accesses' end |