Class: ContractsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- ContractsController
- Defined in:
- app/controllers/contracts_controller.rb
Instance Method Summary collapse
-
#index ⇒ Object
GET /contracts or /contracts.json.
-
#show ⇒ Object
GET /contracts/1 or /contracts/1.json.
Methods inherited from ApplicationController
#home, #mining_profile, #privacy_policy, #terms
Instance Method Details
#index ⇒ Object
GET /contracts or /contracts.json
7 8 9 |
# File 'app/controllers/contracts_controller.rb', line 7 def index @contracts = Contract.all end |
#show ⇒ Object
GET /contracts/1 or /contracts/1.json
12 13 |
# File 'app/controllers/contracts_controller.rb', line 12 def show end |