I am trying to make a new record that is an exact copy of an existing record, but I need the new record to of course to have a unique
@blog = Blog.new(title: "some title")
@copy_of_existing_blog = Blog.new(@blog.attributes)
You need to filter out the ID from the attributes hash. ActiveSupport has a handy
Hash#except method which does just this:
Additionally you may want to filter out the timestamps as well.