Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Submitting arrays from forms

#6206

I have a remote form that uses the following text field helper, but all values received by the controller are nil.
text_field_tag('post[tags[]]', post.tags[i])

If I change the tag as follows, it works fine:
text_field_tag('tags[]', post.tags[i])

Sorry, I'm not sure what else I should post on the issue?

Reported by Tom · December 22nd, 2010 @ 03:36 PM

State: invalid
Milestone: none
Assigned to: nobody
Importance: Low

Activity

  1. Aditya Sanghi
    Aditya Sanghi
    • State changed from new to invalid
    • Importance changed from to Low

    I'm not sure this would be the right forum to ask questions about Rails. This forum is primary for bugs/enhancements with Rails. You would be better off asking questions or seeking help on a forum like StackOverflow.com for example.

    By the way you probably want to try this -

    @@@@ ruby text_field_tag('post[tags][]', post.tags[i]) @@@@

    Marking invalid for now.

    December 22nd, 2010 @ 04:23 PM