search for: userid_before_type_cast

Displaying 1 result from an estimated 1 matches for "userid_before_type_cast".

2007 Apr 17
0
set_primary_key issue
...ry key field under Set cause. Creating a new record, also generated similar sql insert statement. The primary key is not included. BTW, for new record function to work, I have to modify the controller''s new method to initialise the id field, otherwise I will receive "undefined method `UserID_before_type_cast'' " exception. Look back to the development log, before the set_primary_key method is used, generated insert statement for the new record does include all fields. To me, it seems that the activerecord has excluded the primary key field when generating update and insert statement when...