In your code:post
<% f.fields_for :profile do |profile_form| %>
Doesn't that need to be written like this (due to Rails 3 new behavior):this
<%= f.fields_for :profile do |profile_form| %>
|
In your code:post <% f.fields_for :profile do |profile_form| %> Doesn't that need to be written like this (due to Rails 3 new behavior):this <%= f.fields_for :profile do |profile_form| %> |
而若是是下一级,也就是form里面的one to many的fields_for里面再嵌套一级one to none,则不须要等号=。spa