Can't get this?...I'm close I think, my calculation appears to be
working, but.... when i access duration = <%= @enquiry.course_duration
%><br> in my final view it's blank.. course_duration is getting set to
null but works for the calculation?
Hard to say since you haven't said what view is involved (top tip -
pasting 200 lines of code isn't the best way to get people to read
your question. try to only include the relevant bits).
Are you under the impression that course_duration will be save to the
database? it won't (it's just a regular instance variable rather then
an activerecord attribute).