Displaying 1 result from an estimated 1 matches for "path_was".
Did you mean:
path_max
2011 Oct 02
4
Aggregated attribute changed but _was is changed too. So nothing is update in database.
...ot;path"]
ruby-1.9.3-rc1 :004 > @hunting.changes
=> {"path"=>[#<Path:0xaebbd10 @points=[#<Point:0xaebbe8c @x=5,
@y=4>]>, #<Path:0xa189da4 @points=[#<Point:0xaebbe8c @x=5, @y=4>]>]}
As you can seen, the attribute "path" is changed, but the path_was
return me the new path value! So when i''m using the save method,
nothing is saved...
I tried few things, like @path_was = path before the path_will_change!
Thank you in advance for any help.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rail...