On May 4, 3:35 pm, "Mike P." <[email protected]> wrote:
> Thanks for your response. The other parts of the app (i.e. the > controllers) do seem to pick up this model. The class in the /lib folder > is being used separately. I'm currently running it manually, but I'm > looking into running it automatically using a cron job or something > similar later on. > > So, it's not included by another file at the moment, as it's meant to > run as a standalone script. (I'm guessing that may have fixed the > problem if that file already had access to the model.) What does running it manually mean - is the rails environment loaded ? If it isn't then you have your answer (since one of the things that gets you is rails' magic file loader) Fred > > Thanks, > Mike > > -- > Posted viahttp://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group > athttp://groups.google.com/group/rubyonrails-talk?hl=en. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

