search for: questionnaire_input_data

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

2006 Apr 26
0
Controller and Model Responsibilities
...aire model class, as it is the models responsibility to keep itself in a proper state. However, I get an "uninitialized constant" error, when I try to call QuestionnaireInputData.new from within the Questionnaire model class. If I do the same from within the controller, and declare model :questionnaire_input_data then everything works fine. The problem is that in my opinion this pollutes controller code very much, apart from that, it''s simply not the controllers job to perfrom these operations. What I basically need to do is create new instances of othe model classes from within a model class. Th...