HI all, newbie question, I have the following DB Structure
How should I map this in my model in rails? An actor can only have
one role in each movie
It makes a little more sense to me to have the db look like this:
Then your models would look like this
class Actor < ActiveRecord::Base
has_many :movies, :through => :roles
class Movie < ActiveRecord::Base
has_many :actors, :through => :roles
class Role < ActiveRecord::Base
Building an e-commerce site with Rails?
Meet up at RailsConf:
Lol? Why did you post that qeustion again? i answered your first
thread 1 hour ago?