event list for teacher page
This commit is contained in:
@ -8,6 +8,9 @@ class ProfilesController < ApplicationController
|
||||
end
|
||||
|
||||
def show
|
||||
@events = Event.where(profile_id: @profile.id).
|
||||
where("start_date > ? " , Date.today - 3.days).
|
||||
order(:start_date)
|
||||
end
|
||||
|
||||
def new
|
||||
|
Reference in New Issue
Block a user