class Offer < ActiveRecord::Base
attr_accessible :name, :admin_id, :guest, :depart, :return, :adult, :kid
attr_accessible :guests_attributes, :payments_attributes
has_many :guests, :dependent => :destroy
has_many :payments, :dependent => :destroy
belongs_to :admin
accepts_nested_attributes_for :guests
accepts_nested_attributes_for :payments
end
コントローラー内
class PaymentController < ApplicationController
def new
@offer=Offer.new
@guest = @offer.guests.build
@payment=@offer.payments.build
end
modelにguests_attributes、payments_attributesを追加しましたが、それでもこのエラーが発生します。誰かが私を助けることができますか?