search for: annualhour

Displaying 1 result from an estimated 1 matches for "annualhour".

Did you mean: annualhours
2006 Feb 06
4
Basic MVC in RoR question
...Record::Base def self.createplan(stardate, enddate, hoursperweek, programtype) stardate = startdate enddate = enddate hoursperweek = hoursperweek programtype = programtype end end My View is: <%= @trainingplan.startdate %> What I''m trying to do is add "annualhours" which is just hoursperweek*52. So I add to my model: annualhours = hoursperweek*52 However, this gives me a nil object error. I know this is simple and I''ve read the Agile book but still I''m not getting it. What exactly do I need to add to my controller or model and...