All,
I have two models, Job and Document.
Job has_one :document
I perform this:
@current_job.document.destroy
which successfully removes all the appopriate DB records.
However, if I attempt to do:
@current_job.document = nil
OR
@current_job.build_document(...)
I get a TypeError: can''t modify frozen hash exception.
Why can''t I reassign nil to the associated document for my job?
Thanks,
Wes
--
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---