Console not working

I just installed Centos 5.4 64 bit. Nothing out of the ordinary, but
this is a plain vanilla installation with ruby enterprise and
passenger.

My app works as it should, but when I try to run ‘script/console’ it
does not load my models. I have to manually load them. Does anyone
know why this happens ? I can’t see any errors in any logs.

If I do strace on the command it gives me tens of thousands of lines,
pretty much just trying to load every variant of every file located
anyplace inside rails until it works.

Any help would be greatly appreciated.

Trausti

This seems to be contagious as now my Mac and other linux boxes that I
know have worked, don’t work any more.

When I start script/console, I get the prompt but no application
objects, no models, no database.

What am I doing that is so wrong that the application it self works
like a charm, but I can’t test stuff in the console ?

Can this be because of ruby enterprise ?

Best regards,

Trausti

On Mon, Feb 8, 2010 at 10:36 AM, Trausti Thor J.

Trausti Thor J. wrote:

This seems to be contagious as now my Mac and other linux boxes that I
know have worked, don’t work any more.

When I start script/console, I get the prompt but no application
objects, no models, no database.

What am I doing that is so wrong that the application it self works
like a charm, but I can’t test stuff in the console ?

How should we know? You haven’t provided any code. Why not use git
bisect to see where this problem started happening?

Can this be because of ruby enterprise ?

I doubt that extremely.

Best regards,

Trausti

On Mon, Feb 8, 2010 at 10:36 AM, Trausti Thor J.

Best,
–Â
Marnen Laibow-Koser
http://www.marnen.org
[email protected]

There is no code really. I just create a new app like

rails newapp

then wait

cd newapp

script/generate model user username:string

Then I go to the database and enter a few users

then I run script/console
and type

allusers = User.all

except there is no User object to be found. I can’t just type in U
and press tab twice, this is what I get

UDPSocket UDPsocket UNIXServer UNIXSocket UNIXserver
UNIXsocket URI UnboundMethod

No User.

Hope this helps,

Trausti

On Thu, Feb 11, 2010 at 12:44 AM, Marnen Laibow-Koser

On Feb 11, 2:18 pm, Trausti Thor J. [email protected]
wrote:

Then I go to the database and enter a few users

then I run script/console
and type

allusers = User.all

So that throws a const_missing error ?

Fred