[Rails] Re: Strange behavior of alias_method_chains

2008-11-23 Thread Alex Sonar
Thanks again! Frederick Cheung wrote: > Require it explicitly from the extension file ? > > Sent from my iPhone > > On 23 Nov 2008, at 20:31, Alex Sonar <[EMAIL PROTECTED] -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this messag

[Rails] Re: Strange behavior of alias_method_chains

2008-11-23 Thread Frederick Cheung
Require it explicitly from the extension file ? Sent from my iPhone On 23 Nov 2008, at 20:31, Alex Sonar <[EMAIL PROTECTED] s.net> wrote: > > Fred, > > I really appreciate your help. The following works like a charm. > > silencio:alias u2$ script/console > Loading development environment (Rail

[Rails] Re: Strange behavior of alias_method_chains

2008-11-23 Thread Alex Sonar
Fred, I really appreciate your help. The following works like a charm. silencio:alias u2$ script/console Loading development environment (Rails 2.2.2) >> require 'app/helpers/alias.rb' => ["XYZ"] >> require 'app/views/alias_ext.rb' => [] >> XYZ.new 1,2 before chain in Alias constructor after cha

[Rails] Re: Strange behavior of alias_method_chains

2008-11-23 Thread Frederick Cheung
The problem here is that the "normal" XYZ in xyz.rb is never loaded so you're trying to call Object's initialize, which does not take 2 arguments Fred Sent from my iPhone On 23 Nov 2008, at 18:52, Alex Sonar <[EMAIL PROTECTED] s.net> wrote: > > Greetings. > > I've got very strange behavio