If you use the block format above, then you can simply do:

```
 <%= form.fields_for 'attachments[]', attachment do |f| %>
  <%= f.text_field :title %>
<% end %>
```