Displaying 20 results from an estimated 13000 matches similar to: "console and updated_at/on"
2005 Nov 14
6
ActionMailer - Sent but no mail?
Hi,
I am attempting to use ActionMailer to send out an email (SMTP) and am having an issue. The log files show that the email is sent, but the email is not making it to my inbox.
I have followed the documentation both on the Wiki and in the AWD book. I''m not sure which setting I have incorrect and need some pointers.
:authentication - should this be set to true, or
2006 May 02
2
:order question
Hi!
I''ve two models:
Project has_many :works
Work belongs_to :project
Work contains :year_start and :year_end
I''ve setup a class method to retrieve the first and last year of my
Project.works
How could I get projects ordered by ''first'' year?
Thanks,
Ettore
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 22
0
rename error using rebuild_index in console after searching
Hi,
I use ruby console to experiment acts_as_ferret, but I ran into file
rename error when I try to rebuild index after doing a search.
is this normal? I am using Ferret 0.10.9 in windows XP.
Loading development environment.
>> Address.rebuild_index
=> {}
>> Address.find_by_contents(''US'')
=> #<ActsAsFerret::SearchResults:0x4f2ffcc @total_hits=2,
2008 Feb 12
4
Syntax of session's updated_at field ?
What''s the syntax to acquire the updated_at value of a session stored
in a db?
session.updated_at doesn''t work. can''t find any docs on this.
-- gw
--~--~---------~--~----~------------~-------~--~----~
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
2006 Jul 11
8
Stop updated_at from auto updating?
Hi
Is there any way to temporarily stop the updated_at field from being
updated when a record is modified with ActiveRecord?
I have a date field which is keeping track of when the record data was
last checked by my application and my app manually updates it, of course
when I do this the updated_at field is also touched making it fairly
useless for finding out when the actual data was changed
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
2009 Oct 16
5
Rails 2.3 Model.touch(:column) always also updates :updated_at???
Hi,
Am I the only one (i.e. something I do is wrong), or does the touch-
method always update updated_at, even though giving it a column to use
INSTEAD is meant to update just that column???
Thanks,
Michael
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>
2012 Oct 23
7
Not updating the updated_at field
This is for Rails 3.1.1
I have a field called last_seen in a model. This field will be updated
when the something about the record is seen in the real world (don''t
worry about this part)
So I go x.update_attribute(:last_seen, Time.now) and the following happens is
UPDATE "blah" SET "last_seen" = ''2012-10-23 08:57:46.179288'',
"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
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
2008 Oct 06
1
Rails console, saving objects
I was reading a book and following the instructions in it.
>> class Story < ActiveRecord::Base; end
=> nil
>> story = Story.new
=> #<Story id: nil, name: nil, url: nil, created_at: nil,
updated_at: nil>
>> story.class
=> Story(id: integer, name: string, link: string,
created_at: datetime, updated_at: datetime)
I do not remember me asking for id, name, link or
2010 Aug 15
1
Can save object via console, but not in app's controller
My app has a ''page'' model and a ''category'' model.
''Page'' belongs_to :category.
''Category'' has_many :pages.
From the console I can create and save a page object with no problems:
>> p = Page.new
#<Page id: nil, title: nil, body: nil, created_at: nil, updated_at: nil,
published: nil, read_counter: nil, category_id:
2012 Dec 26
2
has value in a console but it's nil in my controller and my view?
I have this strange behavior and I don''t undertand why. Here is the thing:
I have this record in my payment model:
1.9.3p286 :019 > u.payment.last
Payment Load (0.3ms) SELECT "payments".* FROM "payments" WHERE "payments"."user_id" = 10
=> [#<Payment id: 37, bank_name: "Mercantil", plan: "Plan Uno", date:
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
2010 Jul 19
1
How to write your own created_at/updated_at?
I''m using Pfeed(http://github.com/parolkar/pfeed) plugin for User
Activity Feeds.
It creates PfeedItem model records and uses created_at field for a lot
of stuff inside.
Now I need to export/import those user logs. I do exporting to YAML.
When I reconstruct PfeedItem AR object from YAML, it have real(old)
creation time in created_at attribute. When I save this PfeedItem -
there is new
2011 Oct 21
2
[LLVMdev] ANN: libclc (OpenCL C library implementation)
Hi,
> libclc: http://www.pcc.me.uk/~peter/libclc/
> pocl: https://launchpad.net/pocl
> clover: http://cgit.freedesktop.org/~steckdenis/clover/
I have pushed our implementation on GitHub:
https://github.com/speziale-ettore/OpenCRun
I have focused on desiging a modular system, because OpenCRun is
intended to be used for research purpose -- not many people, no too much
time, so clean
2008 Dec 25
2
Switching to active_record_store session management errors out
Hello,
Running Ruby 1.8.6 and Rails 2.2.2 against an Oracle XE database
(sigh).
I just upgraded Rails from 1.2.3 to 2.2.2, which made my cookie based
system for storing session information to error out due to the 4Kb
limit. So, I tried to turn on the active_record_store system by un-
commenting out the "config.action_controller.session_store
= :active_record_store" line in
2010 Oct 11
5
Object lost in memory/trashed?
Hi,
I''ve got a problem on which I''ve spent many hours, and I can''t get a
clue on what is happening... I hope someone here will be able to help
me.
Here is the situation : my Rails app uses acts_as_commentable and
acts_as_bookmarkable on a Diagram model. Everything''s working OK
individually: I can create a comment on a Diagram, bookmark it, and so
on.
Now,