Problems with Plugin Models

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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs