Okechi Onyeje 384033bfe6 Added Index Route to Show Result Oysters
- set up index route to show osyters of a specific result
- set up index view, controller method, and route
- commented out debug console
2017-01-20 11:47:52 -05:00

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