Friends I have something like this:
user.rb:
class User < ActiveRecord::Base
has_one :address, autosave: true, dependent: :destroy
accepts_nested_attributes_for(:address, update_only: true, allow_destroy:true)
end
address.r...
asked by
27.12.2014 / 05:36