2008/5/10 Lucas Florio <[EMAIL PROTECTED]>:
> Buenas, tengo una pregunta para realizar:
>
> Tengo dos modelos ActiveResource, anidados y encuentro la forma de crear un
> Usuario (que depende de consumer).
>

Ahh, anidaciones! :-P

Por lo general yo prefiero eludir las anidaciones para ActiveResource,
pero ya que podes necesitarlo...

Probaste:

user = External::User.new(:consumer_id => consumer.id)

?

Sacado de aqui:

(Nested Model Initialization)

http://whynotwiki.com/ActiveResource

Espero te sirva.
-- 
Luis Lavena
AREA 17
-
Human beings, who are almost unique in having the ability to learn from
the experience of others, are also remarkable for their apparent
disinclination to do so.
Douglas Adams
_______________________________________________
Ruby mailing list
[email protected]
http://lista.rubyargentina.com.ar/listinfo.cgi/ruby-rubyargentina.com.ar

Responder a