Forum: Ruby on Rails How to get which field changed in observe_form helper

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
7fbd0e99b27064b14793f028022974e5?d=identicon&s=25 Zhao Yi (youhaodeyi)
on 2009-01-02 09:09
I use observe_form to monitor all the fields in a form. But how can I
get which field changed?
10f7e00c1c5c60e2173995eb16f4ffc7?d=identicon&s=25 pepe (Guest)
on 2009-01-03 19:03
(Received via mailing list)
You could save the form values to a session or flash and compare to
the values from the form delivered by observe_form. This would be
especially easy if the form is based on an object.

Pepe
This topic is locked and can not be replied to.