How can I achieve a nested rails form? Im having trouble getting this setup properly. Right now I have:
<%= simple_form_for @user do |f| %> <%= f.input :city %> <%= f.input :address %> <%= f.input :zipcode %> <%= f.association :interests, :as => :check_boxes, :label => false %> <%= f.association :holidays, :as => :check_boxes, :label => false %> <%= f.simple_fields_for :friend_birthdays do |friend_birthday| %> <%= f.input :name %> <%= f.input :gender, :collection => ['male','female'] %> <% end %> <%= f.button :submit %> <% end %> f.association is working fine for my interests & holidays models as they only need to collect a single attribute each. However, the friend_birthdays model has the same exact relationship as (interests & holidays) with the user model but requires multiple attributes to be edited/added. Any ideas?