Displaying 2 results from an estimated 2 matches for "some_other_nam".
Did you mean:
some_other_name
2008 Jul 31
2
Freeze field in active record
Hello,
I have a freeze field in a table (that I can''t change).
When I try to find a record in this table I have the exception :
C:/DATA/InstantRails-2.0/ruby/lib/ruby/gems/1.8/gems/
activerecord-2.1.0/lib/active_record/attribute_methods.rb:104:in
`instance_method_already_implemented?''
C:/DATA/InstantRails-2.0/ruby/lib/ruby/gems/1.8/gems/
2006 Apr 11
1
Implementing Optimistic Offline Lock - How ?
I understand that ActiveRecord supports the "optimistic offline
lock"-pattern through magic fields (created_at, updated_at). However, a
scaffolded CRUD-Controller doesn''t generate the necessary code to
support this feature (the model state gets lost between two action
calls).
What is the best practice to prevent users from overwriting objects with
outdated data ?
--