mirror of
https://github.com/oonyeje/Pearlception_Website_RoR.git
synced 2025-12-25 11:47:41 +00:00
- set up index route to show osyters of a specific result - set up index view, controller method, and route - commented out debug console
11 lines
234 B
Ruby
11 lines
234 B
Ruby
class OystersController < ApplicationController
|
|
def show
|
|
end
|
|
|
|
def index
|
|
@oysters = Oyster.where(:run_id => params[:result_id])
|
|
@oysters_count = @oysters.count
|
|
@oysters = @oysters.page(params[:page]).per(5)
|
|
end
|
|
end
|