Поля_for исчезают при добавлении acceptpts_nested_attributes_for

Я делаю вложенную форму в Rails 3.2.5, но когда добавляюaccepts_nested_attributes_for мойfields_for исчезают (они просто перестают показываться в моей форме).
Это мои модели:

class Product < ActiveRecord::Base
    attr_accessible :title, :description, :variants_attributes

    has_many :variants
    accepts_nested_attributes_for :variants

    validates :title, presence: true
end  

Моя вторая модель

class Variant < ActiveRecord::Base
    belongs_to :product
    attr_accessible :price, :sku, :weight, :inventory_quantity, :product_id
end

И на мой взгляд, у меня есть

<%= form_for [:admin, @product], :html => {:multipart => true} do |f| %>

 <%= render 'admin/shared/error_messages', object: f.object %>

 <fieldset>
  <legend>Producto Nuevo</legend>  
    <div class="control-group">
      <%= f.label :title, 'Título', class: 'control-label' %>
      <div class="controls">
        <%= f.text_field :title %>
      </div>
   </div>

    **<%= f.fields_for :variants do |variant| %>
     <%= render 'inventory_fields', f: variant %>
    <% end %>**  

  <div class="actions">
    <%= f.submit 'Guardar', class: 'btn btn-primary' %>
  </div>
<% end %>

_inventory_fields.html.erb

<div class="control-group">
  <%= f.label :inventory_quantity, 'How many are in stock?', class: 'control-label' %>
  <div class="controls">
    <%= f.text_field :inventory_quantity, class: 'span1', value: '1' %>
  </div>
</div>  

Часть между ** - это та, которая не печатается. И когда я удаляю accepts_nested_attributes_for в моей модели продукта, поля_for начинают показываться снова, но моя форма не работает.
Что происходит?!?!

Ответы на вопрос(1)

Ваш ответ на вопрос