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 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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 Johannsson <traustitj-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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 >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Trausti Thor Johannsson 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 JohannssonBest, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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 <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Trausti Thor Johannsson 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 Johannsson > > Best, > -- > Marnen Laibow-Koser > http://www.marnen.org > marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Feb 11, 2:18 pm, Trausti Thor Johannsson <traust...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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 >So that throws a const_missing error ? Fred -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.