robertdfrench/MathAcademyRails — Issue #1: Problem Templates should be Classes
Author: robertdfrench
Created: 2011-10-30 19:32:43+00:00
State: open

So much code is going into the problem templates, they are really becoming more logic than view, so I propose:

+ Defining a ProblemTemplate class that has things like decimal formatting and answer evaluation methods
+ Creating a Generator to build new ProblemTemplate subclasses, associated tests, and do any installation work (like inserting a new row into the problem_templates table)
+ Altering the generated_problems table to store serialized instances of ProblemTemplate classes.