I’m trying to figure out where to put objects that aren’t strictly
“model” objects (ie, not database/business objects, these are actually
objects holding information regarding the ui). I’ve seen a couple
answers which is to create the classes in a module file in /lib, or to
create the objects as non-ActiveRecord class files.
Both of these solutions work, of course. However, when working in the
rails development environment they aren’t reloaded on the fly in
webrick/mongrel when they’re modified. Restarting the server everytime
I modify one is a bit of a pain.
The one fix I have found is to just throw the class definitions in one
of the Helper files and instantiate it with the full path, with an eye
to moving it to lib when finished. It works, but it’s really nasty and
I would prefer to come up with a “right” solution.
The concept would be, for instance, that I am creating a web
application that has multiple windows. Each window is an instantiation
of a Frame object, it’s the Frame objects I need to know where to put.
Thanks for any help!