search for: datetime_format

Displaying 9 results from an estimated 9 matches for "datetime_format".

2005 Oct 27
1
Logger datetime_format not working ?
I''m trying to configure logger in a rails app. I added this to my environment.rb : RAILS_DEFAULT_LOGGER.datetime_format = "%Y-%m-%d %H.%M.%s" Yet, none of the entries in the development.log show the datestamp. What can you tell me about this ? Thanks. Peter Fitzgibbons _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://list...
2006 Jan 13
1
How to disconnect to a database????
...######################## the output of index @connected1: #<ActiveRecord::ConnectionAdapters::PostgreSQLAdapter:0x2aaaac138930 @runtime=0.0189187526702881, @connection=#<PGconn:0x2aaaac138980>, @logger=#<Logger:0x2aaaac2e7fd8 @default_formatter=#<Logger::Formatter:0x2aaaac2e7dd0 @datetime_format=nil>, @progname=nil, @logdev=#<Logger::LogDevice:0x2aaaac2e7ce0 @shift_size=1048576, @shift_age=0, @filename="./log/development.log", @mutex=#<Logger::LogDevice::LogDeviceMutex:0x2aaaac2e7c90 @mon_waiting_queue=[], @mon_entering_queue=[], @mon_count=0, @mon_owner=nil>, @dev=#&...
2006 Jan 23
3
date.to_s trimming
When I convert a datetime to a string, it prints out something like this Jan 20 12:00:00 EST 2006 I want to trim off the last twelve characters, i.e. :00 EST 2006 I tried to do it like so: @date = @meeting.date.to_s.chomp.chomp.chomp.chomp.chomp.chomp.chomp.chomp.chomp.chomp.chomp.chomp but the chomps seem to do nothing. I''d love to use regex, but I don''t know which
2008 Jul 08
6
Show SQL request without issuing it
Hi all, I saw that some object.save is causing the SQL request to crash, but I don''t see the SQL request in the logs (only ruby code that''s showing an error during the .save method). Is there any way to show the SQL request before it''s issued to the database ? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received
2006 May 18
0
Showing SQL in script/console
...0x866a7f7c @filename=nil, @mutex=#<Logger::LogDevice::LogDeviceMutex:0x865c1c34 @mon_entering_queue=[], @mon_count=0, @mon_owner=nil, @mon_waiting_queue=[]>, @dev=#<IO:0x817acafc>, @shift_size=nil, @shift_age=nil>, @formatter=nil, @default_formatter=#<Logger::Formatter:0x866a8814 @datetime_format=nil>> >> Jeremy
2006 Jan 11
1
logger in my classes
Hi, I wrote a class which is not an AR extension, nor a controller. I''d like to use logger.* methods there too. My class is in lib/ dir. I include it in environment.rb with the line require ''lib/localization'' just after the line require File.join(File.dirname(__FILE__), ''boot'') I tried many ways to reuse the logger class. The cleaner way seemed to
2006 Jun 16
0
rake spec controller test output hideus.
...:LogDeviceMutex:0x2469550 @mon_entering_queue=[], @mon_count=0, @mon_owner=nil, @mon_waiting_queue=[]>, @dev=#<File:/Users/jgb/Development/Rails/learningruby/config/../log/test.log>, @shift_size=1048576, @shift_age=0>, @formatter=nil, @default_formatter=#<Logger::Formatter:0x24696cc @datetime_format=nil>>, "flash"=>{:warning=>"Signup unsuccessful"}, "before_filter_chain_aborted"=>false, "headers"=>{"Status"=>"200 OK", "cookie"=>[], "Cache-Control"=>"no-cache"}}, @before_filter_c...
2006 Jan 05
7
HOWTO: Combine fields from 2 two tables in 1 object
Hi all, For a dropdownlist (showing "Company - FirstName Lastname'') I want to fill an object @project_contacts with "Name" from table Companies and "Firstname" and "Lastname" from table contacts. Any idea? Regards, Gerard. -- "Who cares if it doesn''t do anything? It was made with our new Triple-Iso-Bifurcated-Krypton-Gate-MOS
2006 Dec 14
8
ActiveRecord outside of rails
I have a few questions regarding using activerecord outside of rails. Usage is with legacy databases, which gives rise to some of the problems. Probably the first, and most simple question though, is how to capture the SQL log, with which I can hopefully figure the other stuff out. I''m currently trying ActiveRecord::Base.logger = Logger.new STDOUT Based on random googles, but it