From: Tim Hunter Date: 2007-05-30T23:53:01+09:00 Subject: Re: #respond_to? not working for dynamically generated metho James Gray wrote: > > I don't really understand this stance. My opinion is that providing > a method_missing() implementation is a convenient way for a > programmer to define a lot of dynamic methods. This increases the > messages an object responds to. > > Following from that logic, I believe you should also override > respond_to?() to reflect those new messages. It's my opinion > therefore that this thread has exposed a bug in Rails that should be > patched. > FWIW, there's an entry about this in the Ruby Style Guide on rubygarden.org: http://wiki.rubygarden.org/Ruby/page/show/RubyStyleGuide/RespondToGoesWithMethodMissing -- Posted via http://www.ruby-forum.com/.