Error with fields_from

mark
2008-12-24T23:30:47Z

Heya guys and gals.
I was following ryan bates complex forms #73 + #74 and have come
across a problem which i''m having trouble solving.

my _test.erb partial looks like

<% fields_for "story[acceptence_test][]" do |test_form| %>

	Test: <%= test_form.text_field :test %>

<% end %>

When I try to load a page that calls this partial I get
`@story[acceptance_test]'' is not allowed as an instance variable name

If I remove the [] from the first line leaving me with only story
[acceptance_tests] the page loads fine, but I can''t save the form.

Any ideas?



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