narayana perla
2012-Jun-29 22:51 UTC
Prob with updating a record with Activeresource object
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 via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.
Dennis B.
2012-Nov-27 11:54 UTC
Re: Prob with updating a record with Activeresource object
Got the same problem here. Did you solve this issue? Thanks in advance. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.