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

#<Team:0x007fcbe117cfa0>
#<Team:0x007fcbe117ca00>
#<AthleteTeam:0x007fcbe0ff44f8>
#<AthleteTeam:0x007fcbe0ff3d50>


here are the four objects
need to do something that says does AthleteTeam.include(team)

any help would be appreciated.

--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 2 | next ›
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedJan 6, '12 at 11:35p
activeJan 7, '12 at 8:43a
posts2
users2
websiterubyonrails.org
irc#RubyOnRails

2 users in discussion

Gerbdla: 1 post Colin Law: 1 post

People

Translate

site design / logo © 2021 Grokbase