Displaying 20 results from an estimated 100 matches similar to: "RSpec Testing ActiveRecord config dependency."
2003 Feb 11
5
PXE boot from Windows XP
Yes, you are missing these options in the DHCP server:
66 'Boot Server Host Name' (the tftp server IP)
67 'Bootfile Name' (pxelinux.0)
-----Original Message-----
From: Pierre VIALLET [mailto:pvt at auvitran.com]
Sent: Wednesday, February 12, 2003 10:18 AM
To: syslinux at zytor.com
Subject: [syslinux] PXE boot from Windows XP
Hi,
I want to boot a VIA EPIA Motherboard from a
2006 Aug 07
5
[PATCH][LINUX] use machine_emergency_restart() from the generic header.
This patch uses the standard generic header for the definition of
machine_emergency_restart() and reverses the call path for XenoLinux.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
---
diff -r 7680b29c03a6 drivers/xen/core/reboot.c
--- a/drivers/xen/core/reboot.c Sat Aug 05 11:33:24 2006 -0400
+++ b/drivers/xen/core/reboot.c Mon Aug 07 09:50:33 2006 -0400
@@ -9,6 +9,7 @@
#include
2007 Mar 19
3
error, please help
i am trying to regester a dll i need for a program i want to use but i
am getting the following error
$ wine regsvr32 MSVBVM60.dll
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set
correctly.
Failed to load DLL MSVBVM60.dll
help anyone?
i am using the newest Free BSD and wine
2011 Jan 17
3
Rails 3: Using local timezone on DB
I''m in the process of upgrading my existing Rails 2.3.8 app to Rails
3.0.3.
One problem that I have encountered is how to make rails 3 read/write
date/time data into the DB in localtime.
In Rails 2.3.8, commenting out the ActiveRecord timezone settings did
the trick, however in Rails 3, that doesn''t work as the default is now
UTC.
I have tried setting the config.time_zone to
2009 Feb 10
1
config.default_timezone vs. config.time_zone
In config/environment.rb are these statements equivalent?
config.default_timezone = :utc
config.time_zone = "UTC"
If not, then how do they differ in effect?
--
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
2009 Sep 14
9
ActiveRecord::StatementInvalid (invalid date) with Oracle
Hello all. I am a novice Ruby on Rails programmer, starting my first
project using a legacy Oracle 10 database. Using ''reverse_scaffold'' I
have created the models/controllers/views for my existing Oracle
tables.
All seems to work well, using /model/index, /model/show for most of my
tables, *except* when one of the tables contains a Oracle ''date''
column, for
2007 Feb 21
2
date helper bug?
I''ve found an issue when trying to use the time_ago_in_words and
distance_of_time_in_words from action view''s date_helper.rb
Using SQL Server, I have a datetime column that gets returned as:
"2007/02/21 09:54:00". When I pass this to time_ago_in_words (which
just passes on to distance_of_time_in_words) it miscalculates the
difference as "9 hours" (...um yeah,
2006 Jul 05
2
Serialized object behaves weird
Hi!
I got a class named EinsatzFilter which I serialized to session. Before
saving to session it works afterwards I keep getting the message:
"undefined method `to_s'' for #<Person:0x38c6ab8>". "Person" is a from
ActiveRecord::Base inherited class.
Code:
class EinsatzFilter
include ApplicationHelper
attr_reader :personen, :monat, :projekte, :kunde
2010 Jan 26
6
Subclassing ActiveRecord::Base
First of all, sorry for the crossposting, but I put this into the Ruby
Forum first of all, but was pointed to this as a more appropriate
location.
I''m using ActiveRecord and ActiveSupport in a non-rails environment
to connect to multiple databases, and I''ve found the following (single
database) to cause me an error. Note that params is my database settings
and omitted for
2009 Mar 31
2
TimeWithZone seems in rails 2.3 seems broken...is this the correct behavior?
My environment.rb contains
config.time_zone = ''UTC''
If my understanding is correct, rails should assume time values coming
from the database are UTC, and since config.time_zone is set to ''UTC'',
it should not try to convert the times.
Instead, rails is assuming that the db values are Eastern (my local
zone) and is incorrectly adding four hours to convert to
2006 Jun 02
3
Best way to handle different time zones?
We have a project that is hosted in one time zone (say, Pacific Daylight
Time) but the client wants all time recorded in their time zone (say,
Mountain Time). What is the best way to do this? Any recommendations?
Thanks!
Justin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060602/b995e232/attachment.html
2006 May 22
3
Syntax error when running dispatch.cgi
Hi,
when I execute dispatch.cgi at the command line, I get the following
error message:
[cg@cg rails]$ ./public/dispatch.cgi
./public/dispatch.cgi:3:in `require'':
./public/../config/environment.rb:8: syntax error, unexpected ''<''
(SyntaxError)
<%= ''# '' if freeze %>RAILS_GEM_VERSION = ''<%= Rails::VERSION::STRING %>''
2013 Feb 07
11
Rails change default time zone.
Hello everyone,
I am using rails 3.2.8.
I want to change time zone to New York time.
I changed following, but didn''t work
#config/application.rb
config.time_zone = ''Eastern Time (US & Canada)''
config.active_record.default_timezone = ''Eastern Time (US & Canada)''
If am wrong please clarify.
Thank You!
--
You received this message
2006 Jun 07
4
Setting default timezone ENV[''TZ'']=''UTC'' not working on windows?
Hi,
I''ve been trying to do timezone conversion, and have some trouble
getting it to work on my Windows machine. Searching the web, I found
http://wiki.rubyonrails.com/rails/pages/HowtoSetDefaultTimeZone
...which explains how to set the default timezone. I''m using an
environment.rb that include the lines:
ActiveRecord::Base.default_timezone = :utc
ENV[''TZ''] =
2011 Apr 14
4
wrong time in application
hey guys,
i''ve got a problem and i really don''t know how to solve it.
when i''m creating a new dataset in my application, the created_at and
updated_at time will be saved in UTF Time (+000).
in my environment.rb i set the following line:
config.time_zone = ''Berlin''
when i''m using the console (script/console) for reading out some example
2006 Apr 26
5
accessing created_on causes type error
I assume that this is some newbie stupidity, but I haven''t found my
way around this problem. I have an ActiveRecord object fetched
from the database, and I need to evaluate the contents of the
updated_on field. However, *any* attempt to access that data in the
program results in a TypeError with the message ''no implicit conversion
from nil to integer''.
cust =
2007 Apr 03
1
Some timezone trouble involving tzinfo and postgresql
Friends,
So there I was, minding my own business, trying to make my rails app
timezone aware (DST, as well), since it''s all about the timing with
this one. There are a number of excellent articles that I''ve been
working off of, in particular this one internet archived version of
Scott Barron''s very useful article on the subject that is no longer
available at the
2006 Aug 31
0
time_zone_select Acting Funky
I am using time_zone_select for the first time:
<%= time_zone_select(''user'', ''default_timezone'') %>
I have an instance variable called user and that model has an attribute
called ''default_timezone''.
The list displays and when I submit the form, I see it sends the data:
Parameters:
2006 Sep 01
0
time_zone_select Doesn't Update in Save
I am using time_zone_select for the first time:
<%= form.time_zone_select(''default_timezone'') %>
I have an instance variable called user and that model has an attribute
called ''default_timezone''. This is all inside a nice form_form construct.
The list of time zones displays and when I submit the form, I see it sends
the data:
Parameters:
2005 Mar 03
12
bug in postgresql ''now'' time handling??
line 212 of postgresql_adapter.rb is
return Time.now.to_s if value =~ /^\(''now''::text\)::(date|timestamp)/
i don''t think this will work. in postgresql the field ''now'' is pinned to the
SAME TIME for the duration of a transaction. eg. if you do
begin transaction;
insert into t values(42, ''now'');
# sleep one minute