What I'm thinking is that my application is called the same name as
MyModel so in Application i'm loading in module MyModel
But that is calling -
    class Application < Rails::Application .... end

But I'm not really sure how else to debug this.
Anythoughts?

On Oct 24, 9:09 am, Frederick Cheung <[email protected]>
wrote:
> On Oct 24, 4:03 pm, tspore <[email protected]> wrote:
>
> > Right. MyModel - would be in Theory the AR model, but it seems to be
> > erring out on the Helper. (Which it also has)
> > So for some reason I have a few of the upgraded models, which I can't
> > run basic querries against. But some which I can.
> > However, I don't see anything which would not allow those selected
> > models to be ran again AR queries.
>
> Is there a module call MyModel that might be shadowing your active
> record class ?
>
> Fred
>
>
>
>
>
>
>
> > class MyModel < ActiveRecord::Base
> >     ...........
> > end
> > module MyModelHelper
> >    ............
> > end
>
> > On Oct 24, 1:55 am, Frederick Cheung <[email protected]>
> > wrote:
>
> > > What is MyModel ? The error implies it's not actually an active record
> > > class
>
> > > Fred

-- 
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.

Reply via email to