create_or_update method in rails

Posted by krunal shah on Stack Overflow See other posts from Stack Overflow or by krunal shah
Published on 2010-06-11T15:18:29Z Indexed on 2010/06/11 15:23 UTC
Read the original article Hit count: 691

Filed under:
|
ClassName.create_or_update(:id => 3)

returning error

undefined method `create_or_update' for #<Class:0x4760b34>

Is there any method exist with that i can update attribute if object exist otherwise i create it.

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about ruby