hi, i''m using postgres, is possible to retrieve the database''s queries for each page without install any plugin ? (and if is not possible, which plugin do you recommend ?) -- 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-/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 -~----------~----~----~----~------~----~------~--~---
On Sun, 2007-01-21 at 00:34 +0100, usser wrote:> hi, i''m using postgres, is possible to retrieve the database''s queries > for each page without install any plugin ? (and if is not possible, > which plugin do you recommend ?) >try log/development.log --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
matt wrote:> On Sun, 2007-01-21 at 00:34 +0100, usser wrote: >> hi, i''m using postgres, is possible to retrieve the database''s queries >> for each page without install any plugin ? (and if is not possible, >> which plugin do you recommend ?) >> > > try log/development.logyes, but is not possible to show the queries directly in the view? :( i think that for this i need a plugin, right? [another question that isn''t related about this, does exist any method which tell me how many days, hours, minutes, seconds remain between now and an input datetime ? i tried with since, but it doesn''t work (stack level too deep)] -- 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-/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 -~----------~----~----~----~------~----~------~--~---
augustlilleaas-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Jan-21 04:00 UTC
Re: how to check database''s queries?
distance_of_time_in_words(@object.created_at, Time.now), for instance. Take a look at the method source to see how they do it. http://api.rubyonrails.org/classes/ActionView/Helpers/DateHelper.html#M000571 On Jan 21, 12:53 am, usser <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> matt wrote: > > On Sun, 2007-01-21 at 00:34 +0100, usser wrote: > >> hi, i''m using postgres, is possible to retrieve the database''s queries > >> for each page without install any plugin ? (and if is not possible, > >> which plugin do you recommend ?) > > > try log/development.logyes, but is not possible to show the queries directly in the view? :( > i think that for this i need a plugin, right? > > [another question that isn''t related about this, does exist any method > which tell me how many days, hours, minutes, seconds remain between now > and an input datetime ? i tried with since, but it doesn''t work (stack > level too deep)] > > -- > Posted viahttp://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-/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 -~----------~----~----~----~------~----~------~--~---
augustlilleaas-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:> distance_of_time_in_words(@object.created_at, Time.now), for instance. > > Take a look at the method source to see how they do it. > > http://api.rubyonrails.org/classes/ActionView/Helpers/DateHelper.html#M000571thanks :) -- 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-/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 -~----------~----~----~----~------~----~------~--~---
about the queries directly in the view, is possible ? i''ve installed query stats but it doesn''t work :( -- 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-/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 -~----------~----~----~----~------~----~------~--~---
usser wrote:> about the queries directly in the view, is possible ? i''ve installed > query stats but it doesn''t work :(anyone? :( -- 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-/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 -~----------~----~----~----~------~----~------~--~---