Class: Studies::EventsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/studies/events_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject


6
7
8
9
# File 'app/controllers/studies/events_controller.rb', line 6

def index
  @study = Study.find(params[:study_id])
  @events = @study.events.order(:created_at)
end