# Error with fields\_from

**URL:** <https://www.ruby-forum.com/t/error-with-fields-from/156340>\
**Category:** Rails\
**Created:** [December 25, 2008, 12:31am UTC](https://www.ruby-forum.com/t/error-with-fields-from/156340 "2008-12-25T00:31:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mark](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e9c0ed/32.png) [@mark](https://www.ruby-forum.com/u/mark)\
**Post date:** [December 25, 2008, 12:31am UTC](https://www.ruby-forum.com/t/error-with-fields-from/156340/1 "2008-12-25T00:31:13Z")

</div>

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?
