Forum: Ruby on Rails Problems with Plugin Models

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
20381b12339f505894d6cff38d4696ca?d=identicon&s=25 Steve Sloan (Guest)
on 2005-12-26 23: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
load
path, and if I move my models to 'myplugin/lib/models' -- even if I
explicitly
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
ActiveRecordStore).

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.