ActiveResource wrong constant name 0

The fields_for tag, when working with ActiveResource’s
accepts_nested_attributes_for returns the params like this:


Note th “0” as a key to the “chapters_attributes” hash.

When working with ActiveResource it gives me this ‘wrong constant name
because it tries to ‘find or create’ an resource for each key of the
attribute hash.

Someone knows how to fix it? I’m not supposed to use fields_for with


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