Sunday, December 25, 2011

[Rails] method_missing not working in RoR 3.1.1 & Ruby 1.9.2p290?

I am porting a Rails 2.3.8 app (ruby 1.8.7 (2010-01-10 patchlevel 249)
[i386-mingw32]) to Rails 3.1.1 Ruby 1.9.2p290

In the 2.4.8 app a method_missing is being called correctly. It's a
ghost method.

In Rails 3.1.1 Ruby 1.9.2p290 the method_missing is not being called.

If I explicitly code a method for the missing method, the non-ghost
method does get called.

When I google
rails 3.1 method_missing
I see a handful of people have issues with method_missing ... but the
errors don't seem to be relevant to what I'm doing.

Any ideas?

--
Posted via http://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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate