search for: 236834b6

Displaying 1 result from an estimated 1 matches for "236834b6".

Did you mean: 1368346
2006 Mar 14
1
Where to validate?
class PgmUpdate < ActiveRecord::Base has_many :pgm_visits ... class PgmVisit < ActiveRecord::Base belongs_to :pgm_update ... I am trying to make sure that none of the visits in PgmUpdate overlap start and end dates. Should this validation exist in PgmUpdate or the controller? It seems natural to put them in PgmUpdate, but I must force the relationship together because