# Railscast 73 doesn't work. Is this an edge problem or am I missing something?

**URL:** <https://www.ruby-forum.com/t/railscast-73-doesnt-work-is-this-an-edge-problem-or-am-i-missing-something/118172>\
**Category:** Rails\
**Created:** [October 24, 2007, 2:07pm UTC](https://www.ruby-forum.com/t/railscast-73-doesnt-work-is-this-an-edge-problem-or-am-i-missing-something/118172 "2007-10-24T14:07:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gavin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/439d5e/32.png) [@gavin](https://www.ruby-forum.com/u/gavin)\
**Post date:** [October 24, 2007, 2:07pm UTC](https://www.ruby-forum.com/t/railscast-73-doesnt-work-is-this-an-edge-problem-or-am-i-missing-something/118172/1 "2007-10-24T14:07:30Z")

</div>

Episode 73 of Ryan Bate’s great series of screencasts shows an example  
of using fields\_for to create a new record containing two models. I’m  
trying to repeat his result but alway get and error from this line:

```
<% fields_for "ferry[scheduled_port_attributes][]", scheduled_port

```

do |sp\_form| %\>

In the rails cast, this returns an array of scheduled\_port\_attributes,  
but instead I get a hash with “3” as a key:

{“commit”=\>“Save”,  
“ferry”=\>{ “scheduled\_port\_attributes”=\>{“3”=\>{“departs(4i)”=\>“21”,  
“departs(5i)”=\>“29”,  
“arrives(1i)”=\>“2007”,  
“arrives(2i)”=\>“10”,  
“port\_id”=\>“2”,  
“arrives(3i)”=\>“12”,  
“arrives(4i)”=\>“21”,  
“departs(1i)”=\>“2007”,  
“arrives(5i)”=\>“29”,  
“departs(2i)”=\>“10”,  
“departs(3i)”=\>“12”}},  
“id”=\>“1”}}

Am I missing something? I’m on edge rails. Does that matter?
