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