Greg Hauptmann
2008-Dec-12 07:10 UTC
is there a way in ./script/console to get the SQL debugging showing??? (i.e. like you see when you run ./script/server in development mode)
is there a way in ./script/console to get the SQL debugging showing??? (i.e. like you see when you run ./script/server in development mode) thanks --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Eifion Bedford
2008-Dec-12 07:49 UTC
Re: is there a way in ./script/console to get the SQL debugging showing??? (i.e. like you see when you run ./script/server in development mode)
You could always have two terminal windows open, one with script/ console open and another with script/server. Any db calls you make will appear in the script/server window. Eifion On 12 Dec 2008, at 07:10, Greg Hauptmann wrote:> is there a way in ./script/console to get the SQL debugging > showing??? (i.e. like you see when you run ./script/server in > development mode) > > thanks > > > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Greg Hauptmann
2008-Dec-12 10:01 UTC
Re: is there a way in ./script/console to get the SQL debugging showing??? (i.e. like you see when you run ./script/server in development mode)
ok - thanks On Fri, Dec 12, 2008 at 5:49 PM, Eifion Bedford < eifion.bedford-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> > You could always have two terminal windows open, one with script/ > console open and another with script/server. Any db calls you make > will appear in the script/server window. > > Eifion > > On 12 Dec 2008, at 07:10, Greg Hauptmann wrote: > > > is there a way in ./script/console to get the SQL debugging > > showing??? (i.e. like you see when you run ./script/server in > > development mode) > > > > thanks > > > > > > > > > > > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Andrew Porter
2008-Dec-12 15:25 UTC
Re: is there a way in ./script/console to get the SQL debugging showing??? (i.e. like you see when you run ./script/server in development mode)
ActiveRecord::Base.logger = Logger.new(STDOUT) --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---