Class: OystersController

Inherits:
ApplicationController show all
Defined in:
app/controllers/oysters_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



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

#showObject



2
3
# File 'app/controllers/oysters_controller.rb', line 2

def show
end