Add extra depth to input field in form_for

Hey all,

I’m making a table form in rails who roughly looks like this:

(form_for :info,…)
Header1
Item 1 yes/no comment
Item 2 yes/no comment

Header2
Item 1 yes/no comment
Item 2 yes/no comment

What i would like to do is that the name of the combobox (yes/no) would
be info[header1][item1][yesno] and the comment
info[header1][item1][comment]

For item 2 this would have to be info[header1][item2][yesno] and so on.

Any suggestions about the best approach for this?

Thanks!

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