plataformatec/simple_form — Issue #486: Update nested modle wiki page
Author: ticktricktrack
Created: 2012-03-01 15:10:04+00:00
State: open

I have an associated key / value storage and am using simple_fields_for. It was a bit tricky to find out how to get hold of the actual object.

Suggestion put that into the wiki page, or give me the ok to update the wiki myself.

```erb
<%= simple_form_for @user do |m| %>
<%= m.simple_fields_for :custom_fields do |c| %>
<%= c.input :field_value, label: c.object.field_name %>
<% end %>
<% end %>
```