What is the easiest way to replace record in database? Better that this:
@old = Order.find(5) @new = Order.find(90) @old.x = @new.x @old.y = @new.y @old.z = @new.z @old.w = @new.w @old.p = @new.p @old.r = @new.r ... @old.save So now @old = @new except @old.id and @old.created_at -- 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

