HABTM ReadOnlyRecord

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

Might be related to http://dev.rubyonrails.org/changeset/6413

On 6/30/07, Emil K. [email protected] wrote:

The characters_learning_abls table looks like this:
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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs