On 6 January 2012 23:34, gerbdla
<gerbdla-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I have an interesting question and I am not sure if it is even
> possible to accomplish but thought
> would give you guys a look at it.
>
> I have four objects here 2 Teams and 2 AthleteTeams associations
>
> what I need to do is test to see if the team objects are = to the
> associations
What do you mean by the Team being equal to the AthleteTeam? They are
different classes so cannot be equal. Do you mean that the team
belonging to the athleteteam is that team? If so then something like
if @athlete_team.team.id = @team.id
should do the trick.
Colin
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.