Gavin
2007-Oct-25 14:55 UTC
Shouldn''t <% fields_for "company[product_attributes][]", product do |form| %> return an array?
This is giving me a hash of product_attributes, but I thought it was supposed to return an array. This is shown in railscast 73 but my results are different. Am I missing something? --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Seemingly Similar Threads
- names of select elements inside a fields_for block not generated as expected
- how to get form parameters while using fields_for with nested attributes
- Can I use an array with fields_for ?
- fields_for and Conflicting types for parameter containers. Expected an instance of Hash but found an instance of Array.
- nested forms in rails 2.3