[Rails] Re: Expected to define

2012-08-01 Thread Masiha H.
My solution for this kind issue is in app/controllers/application_controller.rb see if the below code matches in the first line class ApplicationController < ActionController::Base -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Googl

[Rails] Re: Expected … to define Base

2012-06-09 Thread Matt Jones
On Friday, 8 June 2012 08:54:19 UTC-4, Zeck wrote: > > I new to rails. I have a setup in the lib directory like so: > > lib/ >blog/ > core/ > search/ > base.rb > > The base.rb defines the Base class as well: > > module Blog > module Core > module Search >

Re: [Rails] Re: Expected … to define Base

2012-06-08 Thread Zeck
Is it bug? On Saturday, June 9, 2012 12:26:29 AM UTC+8, Oscar Del Ben wrote: > > This is kind of interesting. I want to spend some time tomorrow to debug > this kind of issues (that happens very frequently), unless someone gets to > it first. > > -- > Oscar Del Ben > Sent with Sparrow

Re: [Rails] Re: Expected … to define Base

2012-06-08 Thread Oscar Del Ben
This is kind of interesting. I want to spend some time tomorrow to debug this kind of issues (that happens very frequently), unless someone gets to it first. -- Oscar Del Ben Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Friday, June 8, 2012 at 6:14 AM, Zeck wrote: > > Added my f

[Rails] Re: Expected … to define Base

2012-06-08 Thread Zeck
Added my full stack Started GET "/admin/posts" for 127.0.0.1 at 2012-06-08 21:06:18 +0800 LoadError (Expected /home/usr/code/blog/lib/blog/core/search/base.rb to define Base): app/controllers/admin/base_controller.rb:5:in `' app/controllers/admin/posts_controller.rb:6:in `' Rendered /

[Rails] Re: Expected .. to define

2009-01-14 Thread satynos
> I also had the same problem. My application is running rails 2.0.2. > Has anyone actually found a good solution for this? Hope this helps someone who is in the same boat. If you have a controller named ApplicationsController (there is additional 's' in the controller name) and also the corresp

[Rails] Re: Expected .. to define

2009-01-12 Thread Frederick Cheung
On Jan 12, 12:59 pm, Caesar wrote: > I also had the same problem. My application is running rails 2.0.2. > Has anyone actually found a good solution for this? > The error message is misleading. Expected foo.rb to define Foo usually just means that something bad happened when loading foo.rb (syn

[Rails] Re: Expected .. to define

2009-01-12 Thread Caesar
I also had the same problem. My application is running rails 2.0.2. Has anyone actually found a good solution for this? On Nov 25 2008, 11:35 am, Sarah Gray wrote: > Let me just add that while what I wrote above did work a few times, the > problem recurred.  So I would not say that is a good sol

[Rails] Re: Expected .. to define

2008-11-25 Thread Sarah Gray
Let me just add that while what I wrote above did work a few times, the problem recurred. So I would not say that is a good solution. At this point I manually required my classes in the other class: require 'project' require 'asset' ... and this seems to work. It is a mystery to me, but h

[Rails] Re: Expected .. to define

2008-11-25 Thread Sarah Gray
Hello, I wanted to chime in because I had a similar proble, Expected / .../app/controllers/application.rb to define Application. On production only. Rails 2.1.2, apache2, passenger. This thread was helpful and I found in my stack trace the noted const_missing, originating at line 90 in one o