フォームの送信が必要なシンプルなアプリに取り組んでいます。2つのモデルを作成しました。
user.rb
class User < ActiveRecord::Base
  attr_accessible :email
  has_many :item
end
item.rb
class Item < ActiveRecord::Base
  attr_accessible :user_id
  belongs_to :user
end
ユーザーフォームビューを使用してユーザーを作成する代わりに、アイテムフォームビューを使用してユーザーを作成しようとしています。
items / _form.html.haml
= nested_form_for @item do |form|
  = form.fields_for :user do |builder|
    = builder.text_field :email
  = form.submit "Save"
私はここで何かを逃しましたか?ところで、nested_form_forを使用しています。ありがとうございました。