Hi, I am updating a record using activeresource object. I get an error "cant mass assign protected attributes id, created_at , updated_at". This is because i read a record, modify some values and then update the entry using object.save( which also updates id, created_at etc). To remove this error i can include the id, created_at fields in the model file. But is there a better way to get out of this prob?
on 2012-06-30 00:51
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.