Forum: Ruby on Rails Problems with Plugin Models

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Steve S. (Guest)
on 2005-12-27 00:20
(Received via mailing list)
I'm developing a plugin that provides several models (with a Rakefile to
generate the schema).  However, I'm running into two problems:

1. How can I setup a 'models' directory?  Only 'myplugin/lib' is in the
path, and if I move my models to 'myplugin/lib/models' -- even if I
require them all -- it tries to dynamically load them (and fails).

2. I'm trying to store a model instance in a session, but I keep getting
unknown class errors on my model when it tries to unmarshal (using

Per the wiki, I've added reloadable?() to all of my models.

Any suggestions?  Thanks ...

-- Steve
This topic is locked and can not be replied to.