On Jul 22, 5:22 am, pepe <[email protected]> wrote:
> [...] I finally discovered (from a
> simpler use of fields_for that I have working) that fields_for
> generates actually 2 input tags for each one of the association
> records, one for the field you need and another one that is a hidden
> field and I believe keeps track of the ID value of the associated
> record (not very sure about that, though, I still have to check that
> out).

Just a comment.

It turns out the hidden fields I saw in the code I had already working
were being generated because the fields being used were check boxes
and Rails needs them because of the particular behavior of check
boxes. The final thing only generates one field per text_field, no
hidden fields.

In any case, the problem is finally fixed and I have learned quite a
few things in the process of working with fields_for.

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