thanks - given all of this what do you think about the fact Rails doesn't
highlight the issue via exception?  It still seems misleading to me the way
it works...

On Sun, Jan 11, 2009 at 10:32 PM, Mikel Lindsaar <[email protected]> wrote:

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


-- 
Greg
http://blog.gregnet.org/

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