Top "Fields-for" questions

In Ruby on Rails this creates a scope around a specific model object like #form_for, but doesn’t create the form tags themselves.

Rails: fields_for with index?

Is there a method (or way to pull off similar functionality) to do a fields_for_with_index? Example: <% …

ruby-on-rails loops fields-for
Rails 4: fields_for in fields_for

I am learning RoR and i am trying to find how to set a fields_for in another one with …

ruby-on-rails ruby-on-rails-4 form-for fields-for nested-form-for
using an array with fields_for

How can I iterate through an array of objects (all the same model) using fields_for ? The array contains objects …

ruby-on-rails arrays fields-for
How should I use rails and simple_form for nested resources?

I'm trying to create one resource with another nested resource at the same time. I'm using Rails4 and simple_form 3.0.0…

ruby-on-rails simple-form nested-attributes fields-for strong-parameters
Rails -- fields_for not working?

When I run the rails server and go to the school/new page on my site, the field with the …

ruby-on-rails-3 fields-for
Absolutely stuck trying to create nested association in rails form with has_many through

I posted an earlier question about this and was advised to read lots of relevant info. I have read it …

ruby-on-rails ruby-on-rails-4 fields-for
fields_for not rendering - rails 3

Finally moved to Rails 3 for a new project and already running into a rookie problem. Trying to do a simple …

ruby-on-rails nested-forms fields-for
Plural for fields_for has_many association not showing in view

Currently, an Item belongs_to a Company and has_many ItemVariants. I'm trying to use nested fields_for to add …

ruby-on-rails ruby ruby-on-rails-3 nested-attributes fields-for
Forms to create and update Mongoid array fields

I've been struggling to create a form for a Mongoid model that has an array field. I want my form …

ruby-on-rails ruby mongodb mongoid fields-for
Rails 3 fields_for - sort order gets lost

I am using Rails 3.0.3 with ruby 1.9.2p0. In my profiles_controller (edit function) I have this call @profile = Profile.find(…

ruby-on-rails-3 sorting fields-for