5 validates_presence_of :director
6 validates_presence_of :video_genre
7 validates_presence_of :media
10 # FIXME: generate this based on day of week, newrelase
15 # FIXME: generate this based on the day of week, newrelease
16 # NOTE: a Date.wday will tell you the day of week (0-6, meaning Sunday-Saturday)
17 return Time.now.advance(:days => 2).to_date
22 errors.add(:video_genre, "does not exist in the database") if video_genre.nil?
23 errors.add(:media, "does not exist in the database") if media.nil?