downloaded the source, am working through a onLamp tutorial about ror ; noticed that the model/appointment.rb class doesn't validate for having overlapping appointments for other providers. appointment has a one way belongs_to relationship with patient, but patient doesn't seem to have the bidirectional other end, ? one_to_many , appointments, which might be the way to validate that appointments don't overlap for a given patient, i.e. have a integrity constraint function on patient about the collection of appointments.
On Sat, 14 Oct 2006 01:12 am, Horst Herb wrote: > Until I manage to set up the subversion repository for this (and have gone > through the source code myself) those who can't wait can access the tarball > of the complete source at: > http://ozdocit.org/tiki-list_file_gallery.php?galleryId=7 > > In order to install you need > - RoR installed > - Mongrel installed > - blank database created (no tables at all) > - unpack that tarball into any directory > - in this directory, create config/database.yml (example in > config/database.example) > - in this directory, type "rake db:migrate" > - in this directory, start Mongrel > > You should now be able to use the appointment system by pointing your > browser at the computer running Mongrel (default port 3000) > > Have fun with it, > Horst > _______________________________________________ > Gpcg_talk mailing list > [email protected] > http://ozdocit.org/cgi-bin/mailman/listinfo/gpcg_talk _______________________________________________ Gpcg_talk mailing list [email protected] http://ozdocit.org/cgi-bin/mailman/listinfo/gpcg_talk
