Displaying 1 result from an estimated 1 matches for "camper_role".
2006 Feb 08
1
Weird validation issue
...nding && @contact.save && @camper.valid? &&
(@camper.contact = @contact) # (Yes, that last equal should
definitely be a single one!)
unless @booking.contactslist.include?( @contact.id )
# Need to add a role of "SU Camper" to the contact here
camper_role = Role.find(:first, :conditions => "name = ''SU Camper''")
@contact.add_role(camper_role)
camper_added = false
particular_error = ''''
if @booking.camp.camptype == Camptype.find(:first, :conditions
=> [ ''name =...