Displaying 20 results from an estimated 700 matches similar to: "How to write your own created_at/updated_at?"
2010 Dec 13
9
created_at, updated_at and MSSQL
Hello,
I am running into a little issue. There is a considerable time
difference between the time that the console is giving me and the time
I am seeing in the created_at and updated_at column in the DB. The
difference is about 5 hours.
I don''t think the problem is in the DB, but I could be wrong.
Am I missing something obvious? Any clues?
--
You received this message because you are
2011 Mar 14
7
Rails server not works - yesterday worked fine
Hello there,
I''ve a big problem -- I come now PC and started rails server and I got
this huge report of errors. The rails server is not running, I''ve any
idea, what is wrong. Yesterday everything worked yet...
The statement after command "rails server" is here:
=> Booting Mongrel
=> Rails 3.0.5 application starting in development on
http://0.0.0.0:3000
=>
2006 May 27
0
Typo 1055 created_at Vs. published_at
[Couldn''t post this to the Typo forum, hope it''s Ok here :-)]
Before I go off and create a Typo ticket, I''d like to know if anyone
else is experiencing this and what there thoughts might be on the
subject?
In Typo 1055, if you use the admin interface and change the published
date for an article, you will get "post not found", when you click on
the article
2006 Mar 17
3
RoR problems with Created_At and PostgreSQL
So, I wrote some pages which essentially created some articles which are
saved to a database, which also include both the "magic" rows
''created_at'' and ''updated_at''.
Now, on my development machine I''m running the MySQL-database and
everything worked as I wanted it to. On the live server I''ve had to
switch to PostgreSQL 8.1 due to
2007 Aug 16
0
created_at Column and strftime
I am trying to format the created_at value of an object for display in
the view.
Just for testing purposes, right now I''m doing -
puts @the_object.created_at.strftime(''%B %e, %G'')
puts @the_object.created_at.to_date.strftime(''%B %e, %G'')
The first line doesn''t output anything, while the second one outputs the
date in the correct format. Why
2009 Jan 17
0
Created_at date/time if off by UTC-5 hours ?
Hello -
My model has created_at and updated_at which get set automatically, as
expected, but the time is 5 hours off. For example, if I create a new
record at 7:15:25 AM the created_at time shows 12:15:25.
I suspect this has to do with my time zone (Eastern Time, United
States). But if I do a Time.now, it shows the correct time.
Does the Timestamp class use a different zone than the Time
2012 Oct 23
0
multidimensional Array or Hash with group_by 'created_at'
Hello,
i want to create a multidimensional Array or Hash with group_by
''created_at''.
3 dimensions needed:
myArray[week][day][data]
currently i only created it with 2 dimesions:
#model
def self.group_per_day
all.group_by{|t| t.created_at.strftime("%d. %B, %Y")}.sort #"%U" for
Weeks
end
#controller
@pdf_activities = Activity.group_per_day
#view
2008 Sep 12
0
polymorphism with created_at and modified_at
Hi,
I was wondering what happens, if I use polymorphism in combination
with created_at and modified_at?
Lets say I have 3 models, which all have the attributes created_at and
modified_at, then how will they updated?
Will changes in the child affect the "modified_at" of the parent?
Will a "child.attribute_at()" yields the value of the child or the
parent?
Given the child,
2006 Jun 10
0
Ordering Based on created_at in HABTM relationship
I have the following line in my controller:
@tag = Tag.find_by_name @params[:id]
Now, how do I order the rows based on the HABTM relationship
problems_tags i.e. problems_tags.created_at DESC
Thanks :-)
John Kopanas
http://www.kopanas.com
============================================================
http://www.soen.info - Index of online software engineering knowledge
http://www.cusec.net -
2006 Jun 11
2
Easy created_at/created_on question
I have an easy question that I can''t seem to find an answer to. When I have
a table with a created_at or created_on column I''ve read that Rails will
automatically update these because they are "magic" column names. I assumed
that since this was all supposed to be done in the background that these
columns would not show up in the standard forms that are created by the
2006 Apr 29
0
created_at timestamp bug???
Occassionally when creating a record, rails is setting the datetime field
(''created_at'') to something ~1 month in the past. This only happens on a
few instances so i''m thinking that its not something wrong with my code.
Has anyone else had this problem?
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2010 Apr 24
2
problem using attachment_fu with S3
Hi,
My S3 bucket is located in the US
I have attachment_fu working when using file system storage
I have sw-swf upload plugin working with my S3 account
but I can not get attachment_fu to work with S3 storage.
the error I get is :
AWS::S3::RequestTimeout in Upload filesController#create
Your socket connection to the server was not read from or written to
within the timeout period. Idle
2005 Dec 19
3
created_on, created_at defaulting to 2000/01/01 00:00:00
Hello all,
Rails 1.0.0
created_on is being set to 2000/01/01 00:00:00
Any ideas on this ?
Thanks!
Schema is
create table user_login_history (
id int identity(1,1) not null,
user_id int not null,
created_on datetime default(getdate()) not null,
created_at datetime default(getdate()) not null,
updated_on datetime default(getdate()) not null,
constraint pk_user_login_history primary key clustered
2009 Feb 11
6
Sessions do not update created_at column?
Hi All,
I added a column to the sessions table called "created_at" in order to
allow the created time to be recorded.
However, different from other Models, the column does not update
automatically.
Therefore, what codes should I add to update the sessions."created_at"
value?
It is important for avoiding hacker keeping the sessions alive.
Thanks much!
Arthur
--
Posted via
2011 Nov 02
4
undefined method `updated_at' for #<Classified:0x686c5e4>
HEllo, I have the following problem with rails, I am new in this...is
there anyone who explain to me what´s happens?
Thanks
See below:
NoMethodError in Classified#show
Showing app/views/classified/show.rhtml where line #17 raised:
undefined method `updated_at'' for #<Classified:0x686c5e4>
Extracted source (around line #17):
14:
15: <strong>Date Posted:</strong>
2008 Jun 19
5
updated_at with client time not server time
Hi,
I use the t.timestamps that are automatically added by rails. So there
is the created_at and updated_at columns in the DB.
When I create an entry those are filled with the server time when the
request is created or updated.
I want that to be the client time, if I do the request from Europe now I
get US time in the DB.
How to do it? Do I need to send explicitely time info from the client
2005 Dec 31
0
Disabling updated_at/updated_on
Hello
Is it possible to disable the update of "updated_(at|on)" columns when
using acts_as_list methods for example ?
Thanks
2013 Sep 11
1
when does 'updated_at' column get updated?
Using centos 6 with puppet-2.6.17 with thin_storeconfigs with mysql and
nagios exported resources. Every time an agent connects to the master, the
updated_at column in the hosts table is updated. However, the updated_at
column in the other tables is not updated even when I alter a nagios
resource attribute like retry_check_interval. What are the conditions by
which the updated_at column is
2007 Apr 12
0
console and updated_at/on
Hi,
how could I update data on a model from the console without affecting
updated_at? I remember to have read something about it but I couldn''t find
it anymore!
thanks!
Ettore
--
View this message in context: http://www.nabble.com/console-and-updated_at-on-tf3562861.html#a9951362
Sent from the RubyOnRails Users mailing list archive at Nabble.com.
2008 Jul 02
3
update_all not changing updated_at
Hi everyone-
Model.update_all works and changes the records, but it''s not changing
the updated_at field. Am I doing something wrong or is this by
design?
Thanks,
Dino
--~--~---------~--~----~------------~-------~--~----~
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