Might be related to http://dev.rubyonrails.org/changeset/6413
On 6/30/07, Emil Kampp
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:>
> Hi.
>
> I get this error:
>
> ** ActiveRecord::ReadOnlyRecord **
>
> When i try to update a table called characters_learning_abls that is a
> habtm relation between characters and learning_abls.
>
> The characters_learning_abls table looks like this:
>
> **
> character_id int(11) unsigned
> learning_abls_id int(11) unsigned
> amount double
> **
>
> Why cant i update this table though the
>
> **
> Character.find(charId).learning_abls.find(ablId).update_attributes({:amount
> => 10}) **
>
> Best regards, Emil
>
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>
--
http://m.onkey.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
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
-~----------~----~----~----~------~----~------~--~---