Yeah, well it looks like that. I haven't had any problems with associating an 
address to a client
through rails console for example but then I would do:

client = Client.new(:name => 'someclient')
client.address = Address.new(:address => 'abcde' )
client.save

The problem is in the form building, and I don't know if there perhaps isn't 
support for that or if
it's a bug or if I'm doing something wrong.

J

7 sep 2010 kl. 16.44 skrev Sean Cribbs:

> John,
> 
> It sounds like you're assigning the key of the Address to the association on 
> the Client.  If these are in a one-to-one relationship, it would make more 
> sense to me to store the Address inside the Client object.  On the other 
> hand, if you prefer them to be linked, load the Address in your controller 
> before assigning it to the association.
> 
> I've also added an issue for *_keys accessor methods that should ease the 
> linking up of independent objects. These would be similar to the *_ids 
> methods that ActiveRecord provides. 
> http://github.com/seancribbs/ripple/issues/#issue/57
> 
> Sean Cribbs <s...@basho.com>
> Developer Advocate
> Basho Technologies, Inc.
> http://basho.com/

_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to