search for: update_at

Displaying 8 results from an estimated 8 matches for "update_at".

Did you mean: updated_at
2006 Apr 22
1
Newbie question about using helpers in controllers
I''m trying to display a list of pages in xml. I want to change page.update_at to distance_of_time_in_words_to_now. However whenever I run it I get an error saying: undefined method `distance_of_time_in_words_to_now'' I know I can just go the rails api and copy the source, but there must be another way. def list @page = Page.find(:all, :order => "updated_at...
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 May 12
5
how long before deleting sessions ?
What is the recommended amount of time to keep sessions around in the database (i store them in a sessions table). IF you get 1 million requests per day you are going to get 1 million new session entries in the DB. This would need some serious cleaning so just wondering what a safe cleanup time would be. Also does anyone know how to prevent new sessions records from being created if session
2006 Feb 07
0
complicated search/model question
..."start_date", :date # used if a contractor available only between certain dates t.column "end_date", :date # used if a contractor available only between certain dates t.column "comments", :string t.column "created_at", :datetime t.column "update_at", :datetime end create_table "jobs", :force => true do |t| t.column "created_at", :datetime t.column "updated_at", :datetime t.column "contractor_id", :integer t.column "date_time", :datetime t.column "duration&...
2008 Jul 12
0
to_json in Rails 2.0.2 not generating proper json?
I am using Rails 2.0.2 and trying to use to_json to generate json. I notice several problems. 1) datetime field such as created_at mapped to "created_at": {} 2) :except does not work, @post.to_json(:except => [:created_at, :updated_at] still gives me "created_at": {}, "update_at": {} 3) problem with escaped char mapping: ''<'' mapped to ''\074'' instead of ''\u003C'' Is there problem with my installation? Is there a module I should turn on? Do I need jsonifier plugin? Help please! victor --~--~---------~--~----~----...
2006 Aug 06
1
How to query with calculations?
Hi, I would like to do something simple yet I''m confused. Lets say I have a table with 2 fields: rank, updated_at. I would like to show all records matching this condition: rank = rank ? (Time.now.to_time ? Updated_at.to_time) As you can see this is supposed to be a calculation on the field. How do I write a query to show this? I''ve tried with_scope, and regular find but did not
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" = ''2012-10-23 08:57:54.872808'' WHERE "blah"."id" = 2673 Now, just for this one...