> a = Account.find(1)
> new_account = Account.new(a.params)
> new_account.id = new_id
> new_account.save
>
> *should* work :)

Well.. it most definitely won't...

You need:

new_account = Account.new(a.attributes)

and you might get further


-- 
http://lindsaar.net/
Rails, RSpec and Life blog....

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to