Class: Wobauth::RolesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Wobauth::RolesController
- Defined in:
- app/controllers/wobauth/roles_controller.rb
Instance Method Summary collapse
-
#index ⇒ Object
GET /roles.
-
#show ⇒ Object
GET /roles/1.
Methods inherited from ApplicationController
Instance Method Details
#index ⇒ Object
GET /roles
9 10 11 12 |
# File 'app/controllers/wobauth/roles_controller.rb', line 9 def index @roles = Role.all respond_with(@roles) end |
#show ⇒ Object
GET /roles/1
15 16 17 |
# File 'app/controllers/wobauth/roles_controller.rb', line 15 def show respond_with(@role) end |