Forum: Ruby on Rails Prob with updating a record with Activeresource object

Posted by narayana perla (perlanarayana)
on 2012-06-30 00:51
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?
Posted by Dennis B. (dennis_b)
on 2012-11-27 12:54
Got the same problem here. Did you solve this issue?

Thanks in advance.
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
No account? Register here.