Hey there,
I was following up on some tutorials about has_many(_and_belongs_to).
There it was explain that i should make a join table as such:
create_table 'cards_users', :id => false do |t|
t.column 'card_id', :integer
t.column 'user_id', :integer
end
So i did, but now i wanna add a record via my rails console (@a =
Cards_users.create :card_id => 1, :user_id => 1) but it keeps telling
me,
whatever i try with the capitals etc., that Cards_users(and all other
options) is an undefined method.
What do i do?:(
Thanks in advance
--
Posted via
http://www.ruby-forum.com/.