Hi Colin,
Thank you for your comment, I was actually missing a "end" tag to close off
the class in the controller!
A missing end tag in the controller code gave you the error "undefined
method `model_name' for NilClass:Class"? That is unusual. I would
have expected to get a syntax error about the missing end when the
class was loaded.
Colin