using attr_accessor to nested resources