Class: OystersController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- OystersController
- Defined in:
- app/controllers/oysters_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
5 6 7 8 9 |
# File 'app/controllers/oysters_controller.rb', line 5 def index @oysters = Oyster.where(:run_id => params[:result_id]) @oysters_count = @oysters.count @oysters = @oysters.page(params[:page]).per(5) end |
#show ⇒ Object
2 3 |
# File 'app/controllers/oysters_controller.rb', line 2 def show end |