Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
1 answer
1k views

How to properly implement an association of two models/objects via the seeds.rb in Rails?

So, here is the deal: I have two models, a Player and a Team. Every team has_many players and every player belongs_to a team. The code (omitting a few unnecessary atributes from the player model): ...
sebkkom's user avatar
  • 1,436