Thanks all for the help.
It's quite clear to me now, relating this problem.
And sorry for the late reply, i was away for sometimes and there's a stockpile
of emails flowing into my inbox :))
Regards
Arga
--
You received this message because you are subscribed to the Google Groups "Ruby
on
: rubyonrails-talk@googlegroups.com
Sent: Tuesday, November 16, 2010 20:51:44
Subject: [Rails] Re: Re: Why is my models can't be related using has_one and
belongs_to?
arga aridarma wrote in post #961823:
> If debug can't be used for checking relationship, how can I check
> whether the
> r
arga aridarma wrote in post #961823:
> If debug can't be used for checking relationship, how can I check
> whether the
> relationship is already up and running?
With your automated tests. reflect_on_association should get you
started.
(If you don't have comprehensive automated tests, write them
On 17 November 2010 01:09, arga aridarma wrote:
> - Original Message
>
> From: Colin Law
> To: rubyonrails-talk@googlegroups.com
> Sent: Wednesday, November 17, 2010 5:29:48
> Subject: Re: [Rails] Re: Re: Why is my models can't be related using has_one
> a
- Original Message
From: Colin Law
To: rubyonrails-talk@googlegroups.com
Sent: Wednesday, November 17, 2010 5:29:48
Subject: Re: [Rails] Re: Re: Why is my models can't be related using has_one
and
belongs_to?
On 16 November 2010 22:03, arga aridarma wrote:
> Please don
> attributes_cache: {}
That is not what I asked, see below
>
> With include, i'm able to access the related data.
> The last 3 objects are the data that related to the first one in the model,
> using has_one and belongs_to
>
> regards,
> Arga
>
>
>
>
cess the related data.
The last 3 objects are the data that related to the first one in the model,
using has_one and belongs_to
regards,
Arga
- Original Message
From: Colin Law
To: rubyonrails-talk@googlegroups.com
Sent: Tuesday, November 16, 2010 22:41:52
Subject: Re: [Rails] R
On 16 November 2010 14:59, arga aridarma wrote:
> Thanks for the advice. I have tried to check with the reflections, and surely
> enough the relation is there.
> So i tried to change the query in the controller to this:
>
> @users = ComUser.find(:first, :include
> =>[:def_jabatan,:def_kelamin,:def
8 matches
Mail list logo