I installed 1.1.3 on my OS X Tiger machine and now I''m seeing very strange results. When hitting a controller action, I am told that perfectly valid methods are not there: NoMethodError (undefined method `find'' for VideoTrack:Module) Huh? Here''s the code in question: VideoTrack.find(:all, :conditions => "featured_video = 1", :order => ''created_at DESC'') So... What the hell is going on? Any ideas? Thanks, Hunter
On Jun 28, 2006, at 9:02 AM, HH wrote:> I installed 1.1.3 on my OS X Tiger machine and now I''m seeing very > strange > results. > > When hitting a controller action, I am told that perfectly valid > methods are > not there: > > NoMethodError (undefined method `find'' for VideoTrack:Module) > > Huh? Here''s the code in question: > > VideoTrack.find(:all, :conditions => "featured_video = 1", :order => > ''created_at DESC'') > > So... What the hell is going on? Any ideas?VideoTrack should be a Class, not a Module. -- Eric Hodel - drbrain@segment7.net - http://blog.segment7.net This implementation is HODEL-HASH-9600 compliant http://trackmap.robotcoop.com
It is a class! And it works fine under Rails 1.1.2. It only breaks under 1.1.3 - no code changes at all. Doesn''t make much sense.> From: Eric Hodel <drbrain@segment7.net> > Reply-To: <rails@lists.rubyonrails.org> > Date: Wed, 28 Jun 2006 16:04:51 -0700 > To: <rails@lists.rubyonrails.org> > Subject: Re: [Rails] Rails Borked After 1.1.3 Install? > > On Jun 28, 2006, at 9:02 AM, HH wrote: > >> I installed 1.1.3 on my OS X Tiger machine and now I''m seeing very >> strange >> results. >> >> When hitting a controller action, I am told that perfectly valid >> methods are >> not there: >> >> NoMethodError (undefined method `find'' for VideoTrack:Module) >> >> Huh? Here''s the code in question: >> >> VideoTrack.find(:all, :conditions => "featured_video = 1", :order => >> ''created_at DESC'') >> >> So... What the hell is going on? Any ideas? > > VideoTrack should be a Class, not a Module. > > -- > Eric Hodel - drbrain@segment7.net - http://blog.segment7.net > This implementation is HODEL-HASH-9600 compliant > > http://trackmap.robotcoop.com > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails
On Jun 28, 2006, at 5:17 PM, HH wrote:>> From: Eric Hodel <drbrain@segment7.net> >> Reply-To: <rails@lists.rubyonrails.org> >> Date: Wed, 28 Jun 2006 16:04:51 -0700 >> To: <rails@lists.rubyonrails.org> >> Subject: Re: [Rails] Rails Borked After 1.1.3 Install? >> >> On Jun 28, 2006, at 9:02 AM, HH wrote: >> >>> I installed 1.1.3 on my OS X Tiger machine and now I''m seeing very >>> strange >>> results. >>> >>> When hitting a controller action, I am told that perfectly valid >>> methods are >>> not there: >>> >>> NoMethodError (undefined method `find'' for VideoTrack:Module) >>> >>> Huh? Here''s the code in question: >>> >>> VideoTrack.find(:all, :conditions => "featured_video = 1", :order => >>> ''created_at DESC'') >>> >>> So... What the hell is going on? Any ideas? >> >> VideoTrack should be a Class, not a Module. > > It is a class!No, it isn''t:>>> NoMethodError (undefined method `find'' for VideoTrack:Module)If it was a class it would look like this: > class X; end; X.foo NoMethodError: undefined method `foo'' for X:Class> And it works fine under Rails 1.1.2. > > It only breaks under 1.1.3 - no code changes at all. > > Doesn''t make much sense.Is it possible you have a module VideoTrack lying around somewhere in your application? -- Eric Hodel - drbrain@segment7.net - http://blog.segment7.net This implementation is HODEL-HASH-9600 compliant http://trackmap.robotcoop.com
Eric, I appreciate that you''re taking the time to respond. Seems like you''re assuming Rails 1.1.3 is ok... Have you tried 1.1.3? There are some known bugs and 1.1.4 is coming out to fix them. This one ain''t my code, it''s a borked Rails issue. My app works with 1.1.2 and 1.1.4 (stable SVN check out)... It''s a Rails 1.1.3 issue. Again, I appreciate you taking the time. Cheers, Hunter> From: Eric Hodel <drbrain@segment7.net> > Reply-To: <rails@lists.rubyonrails.org> > Date: Thu, 29 Jun 2006 18:23:55 -0700 > To: <rails@lists.rubyonrails.org> > Subject: Re: [Rails] Rails Borked After 1.1.3 Install? > >> It is a class! > > No, it isn''t: > >>>> NoMethodError (undefined method `find'' for VideoTrack:Module) > > If it was a class it would look like this: > >> class X; end; X.foo > NoMethodError: undefined method `foo'' for X:Class > >> And it works fine under Rails 1.1.2. >> >> It only breaks under 1.1.3 - no code changes at all. >> >> Doesn''t make much sense. > > Is it possible you have a module VideoTrack lying around somewhere in > your application?
On 6/28/06, HH <lists@lastonepicked.com> wrote:> > It is a class! > > And it works fine under Rails 1.1.2. > > It only breaks under 1.1.3 - no code changes at all. >It looks like you''ve placed your controller insider a model. This is rather ugly, but supported in 1.1.4. (In the future it probably won''t be.) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060630/09515227/attachment.html
Nicholas: Did you mean "controller insie a module" ? If so? why would that not be supported? On 6/30/06, Nicholas Seckar <nseckar@gmail.com> wrote:> > > > On 6/28/06, HH <lists@lastonepicked.com> wrote: > > > > It is a class! > > > > And it works fine under Rails 1.1.2. > > > > It only breaks under 1.1.3 - no code changes at all. > > > > It looks like you''ve placed your controller insider a model. This is > rather ugly, but supported in 1.1.4. (In the future it probably won''t be.) > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060630/a8a7e6f3/attachment.html
On 6/30/06, Brian Hogan <bphogan@gmail.com> wrote:> > Nicholas: > > Did you mean "controller insie a module" ? If so? why would that not > be supported? >No, I meant "controller inside a model." -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060630/40bf474a/attachment.html
Nicholas: Okay cool. But... how the heck would you do that?? and why??? On 6/30/06, Nicholas Seckar <nseckar@gmail.com> wrote:> > > > On 6/30/06, Brian Hogan <bphogan@gmail.com> wrote: > > > > Nicholas: > > > > Did you mean "controller insie a module" ? If so? why would that not > > be supported? > > > > > No, I meant "controller inside a model." > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060630/27672f9e/attachment.html
I was the OP and I can say that I don?t know why you would and I did not... It is a truly bizarre idea. From: Brian Hogan <bphogan@gmail.com> Reply-To: <rails@lists.rubyonrails.org> Date: Fri, 30 Jun 2006 14:37:09 -0500 To: <rails@lists.rubyonrails.org> Subject: Re: [Rails] Rails Borked After 1.1.3 Install? Nicholas: Okay cool. But... how the heck would you do that?? and why??? On 6/30/06, Nicholas Seckar < nseckar@gmail.com <mailto:nseckar@gmail.com> > wrote:> > > On 6/30/06, Brian Hogan <bphogan@gmail.com> wrote: >> Nicholas: >> >> Did you mean "controller insie a module" ? If so? why would that not be >> supported? > > > No, I meant "controller inside a model." > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > >_______________________________________________ Rails mailing list Rails@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060630/1d55e7ce/attachment.html