On 3/7/06, Cody Fauser <[EMAIL PROTECTED]> wrote: > Changset 3772 http://dev.rubyonrails.org/changeset/3772 breaks the > support for RJS Helper methods which were added in 3470 > http://dev.rubyonrails.org/changeset/3470. > > Offending code from the JavaScriptGenerator in prototype_helper.rb: > > def initialize(context, &block) #:nodoc: > @context, @lines = context, [] > # removed because those methods were overriding valid generator methods > # include_helpers_from_context > @context.instance_exec(self, &block) > end > > Does this mean that the support for RJS Helper methods is being > dropped, or is this breakage just temporary? The actual method > include_helpers_from_context was left in the code, so it is hard to > tell what is going on. > > Thanks
The problem was the generator needed special versions of some of the methods that the helpers were overriding. I was getting some very strange results withe enum proxy code. All the tests pass :) Let me know what methods are missing and I'll put them back in somehow. If I have to, I'll remove the special helper methods to a mixin that's included after the helpers are loaded. -- Rick Olson http://techno-weenie.net _______________________________________________ Rails-core mailing list [email protected] http://lists.rubyonrails.org/mailman/listinfo/rails-core
