PLEASE help me - this is making me insane.
Can anyone suggest any reasons for this behavior? It occured
then went away and is now back.
In Task.rb (where task is an active record subclass)
def clear_schedule puts "clearing schedule for task" scheduled_end_date= nil #reset the
scheduled end date
execution stop with an error.
This is the console output this produces:
clearing schedule for task
127.0.0.1 - - [28/Apr/2006:13:44:01 Eastern Daylight Time] “POST
06 HTTP/1.1” 500 10736
http://localhost:3000/tasks/edit/106 -> /tasks/update/106
When I query the db, scheduled_end_date is still set to a valid date,
though in the model I set it to nil, called save and then stopped.
were no exceptions other than this:
undefined local variable or method `halt’ for #Task:0x3a23328
I sometimes have the opposite problem in a related piece of code for
same object/column (I set it to a real value, save it, retrieve the
from the database in the very next line of code. When I check the value
Can someone tell me what the expected behavior is within a transaction
versus outside of a transaction? The behavior seems unpredictable in
situations but I’m not sure. I assumed that if I was inside a
that I would still see the new value. All of this occurs within a
http request so I assumed that all the data access was on the same
Anyway, I’m stumped and resolving this is critical to my project.
help if you can.