Hi,

thanks for reading. Since hours, I am facing a problem and it seems
that I am not able to solve it.

Let's say, I've got a model called "AnnotationType". This model has
got a method called "foobar(x)". It's just so simple. I can access
this method in my unit tests, in the console (all modes), but if I
start the server in production mode and try to access this method from
within a view, it can just be found on the first request. Afterwards,
this method isn't found anymore:

undefined method `foobar' for #<AnnotationType:0x7f7be4728870>

vendor/rails/activerecord/lib/active_record/attribute_methods.rb:
256:in `method_missing'
vendor/rails/activerecord/lib/active_record/associations/
association_proxy.rb:177:in `send'
vendor/rails/activerecord/lib/active_record/associations/
association_proxy.rb:177:in `method_missing'
lib/ui/user_interface_renderer.rb:114:in
`create_common_display_element'
...

As you can see, my user interface renderer calls this method, but it
can't be found. Of course, it is not the name of an association proxy.
This explains the above lines.

As I said, and yes, I swear: this method exists! :)

I am really thankful for any hint!

Cheers,
ms

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