i have a "Question" model and a "Tag" model. I added a many-to-many association to these two model. that's what i have now :
class Question < ActiveRecord::Base
attr_accessible :content, :score, :title
has_and_belongs_to_many :tags
end
class Tag < ActiveRecord::Base
attr_accessible :description, :name
has_and_belongs_to_many :questions
end
What should i do to update the database and the controllers ?
thanks