This project is archived and is in readonly mode.
Date field not stored any more
-
Markus Liebelt
Sorry for the formatting of the source. Here it is again:
D:\ruby\rails\app>ruby script\console Loading development environment (Rails 2.1.0) >> t= Task.find(193) => #<Task id: 193, due_date: "2008-08-11"> >> t.due_date= t.due_date + 1 => Tue, 12 Aug 2008 >> t => #<Task id: 193, due_date: "2008-08-12"> >> t.save => true >> t= Task.find(193) => #<Task id: 193, due_date: "2008-08-11"> -
Markus Liebelt
After replacing the old code:
@attributes["due_date"]= new_date
Through:
self[:due_date]= new_date
everything was fine. So my old code had to change so that the change from Release 2.0 to 2.1 (don't use @attributes in your code) could work. I found the pattern self[:<att_name>] in the book "The Rails Way" by Obie Fernandez by accident (a lucky one).
So the ticket should now be fixed
-
DHH
- State changed from new to resolved