Displaying 1 result from an estimated 1 matches for "caanot".
Did you mean:
canot
2009 Jul 01
2
Nested Forms - how to displayed the attributes content ?
I have a User model
class User < ActiveRecord::Base
has_one :account
accepts_nested_attributes_for :account, :allow_destroy => true
validates_associated :account
attr_accessible :account_attributes
is working fine, validating and updating both records (User and
Account), but I caanot display the value in the form when is updated,
ex: below the firstname is not displayed but it''s in the db account
record
#<User id: 1, email: "yves-oHC15RC7JGRl57MIdRCFDg@public.gmane.org", ..
#<Account id: 4, user_id: 1, title: 0, first_name: "Yves", ...
my v...