Ok, I must be lame. Can’t figure out how to create a new entry in my
HABTM models. I just want to add a new book with two authors… How do
I do it?
class Author < ActiveRecord::Base
has_and_belongs_to_many :books
end
class Books < ActiveRecord::Base
has_and_belongs_to_many :authors
end