in my
<%= nested_form_for @object do |f| %>
I've a nested_form like:
<%=f.fields_for :nested, :url => { :action => "new" } do |build| %>
<%= render 'nested_fields', :f => build %>
<% end %>
and inside that nested_field, I've another fields_for :nested2
My Problem is: I want nested2 appearing 1 time, when nested is called. I tried inside the new action of the nested controller the
@nested = Nested.new
@nested.nested2.build
but this does only work for the "real" new action. Is there any solution for that problem?
I'm using the "nested_form" gem.
obkect(typo?), that then has a newnestedobject in it, with thatnestedobject also have a nested form for a newnested2? Also, what's with the:url => { :action => "new" }in yourfields_forcall?