Forum: Ruby on Rails undefined method AFTER First load

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.
E3ca69382186f5bce8b43ff5f0cb2287?d=identicon&s=25 kate rhodes (Guest)
on 2007-03-24 05:53
(Received via mailing list)
I have a fairly simple model to which i've added a method:

def pro?
     return true

For some reason works just fine the First time i call it.
But when i reload the page i get an undefined method error.

The symptoms are very similar to

except that it's a normal model that's not importing anything funky
and is in the standard models folder.

Has anyone else seen this?

I've got an older version of the codebase that doesn't have this
problem when run under the same conditions, so obviously it's not
rails itself but something I've borked... I'm just at a bit of a loss
as to what.

I've tried it with rails 1.2.2, 1.2.3 and edge all under mongrel with
ruby 1.8.5 on ubuntu edgy.

- kate = masukomi
E3ca69382186f5bce8b43ff5f0cb2287?d=identicon&s=25 kate rhodes (Guest)
on 2007-03-24 16:53
(Received via mailing list)
On 3/24/07, kate rhodes <> wrote:
For future people the problem seems to be that when i import a module
into my controller custom methods go missing on my models. I have no
solution for this yet.

- kate = masukomi
This topic is locked and can not be replied to.