so i have a bunch of users
this bit of code gets all the schedules for a particular user. i’m
wondering if there’s a way for me to get only a range of schedules based
on the time field for the user without having to get all the schedules
assigned to the user the user then stepping through the time for every
this is the bit now.
@blab = User.find(session[:user].id).myschedules -step through each schedule that the user has and check to make
sure that the schedule is in the specified date and time range before
displaying each schedule. (yes i know this is very sloppy.
i would like to be able to
@blab = User.find(session[:user].id).myschedules.find(from
1200am to 9pm)
-step throught each schedule that the user has.
or something to that effect
btw myschedules the has_many through relationship.