Displaying 1 result from an estimated 1 matches for "accomodation_duration".
2008 Aug 31
6
why's my course_duration being reset
...ef destroy
Enquiry.find(params[:id]).destroy
redirect_to :action => ''list''
end
def blank
@enquiry = Enquiry.find(params[:id])
end
end
model
------
class Enquiry < ActiveRecord::Base
belongs_to :course
belongs_to :accomodation
attr_accessor :accomodation_duration, :course_duration
# before_validation :set_fixed_fees, :calculate_fees
def set_fixed_fees
# set accommodation_booking_fee from the Selected Accomodation
# set course_booking_fee from the Selected Course
self.course_booking_fee = course.registration_fee
self.accommodation_bo...