How to clone model's data

Hey’ guys.

How to clone model’s data.

Nurzed L. wrote:

Hey’ guys.

How to clone model’s data.

Try some things out in your console, that would the best way to get your
answer. Try:

@obj.clone

@obj.dup

@obj.attributes

It really depends on what you are using the data for.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs