In my first rails app I\'m trying to use form_for and fields_for to create a nested object form. So far so good, but I can\'t figure out how to acc
form_for
fields_for
I just dealt with this today myself.
You can access the object of the fields_for through:
builder.object
where builder is your fields_for form builder object. In your particular case, you can say:
Enter license for car parked in stall: <%= builder.object.stall_number%>
That should do it for you!