On 24 September 2010 23:56, radhames brito <[email protected]> wrote: > class Game < ActiveRecor::Base > has_many :teams > > > class Team < ActiveRecor::Base > belongs_to :game
That will only allow a team to be involved in one game, is that is what is required? Colin > > > > call designation of a game like this > > first get a game from the DB > > @game = Game.find(params[:id]) > > @designations = @game.teams.collect(&:designation) > > > > > > -- > 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

