shouldn't the BookCategories class be called BookCategory? eric.
On Jun 18, 9:43 am, ibnesayeed <[EMAIL PROTECTED]> wrote: > Following is the schema of the tables. ActiveRecord automatically > automatically maps them using the "category_id" and "book_id" present > in intermediate table "book_categories". > > Any idea why i am getting the error, "ArgumentError: A copy of > Category has been removed from the module > tree but is still active!" > > ---------------------------------------------------------------------- > ActiveRecord::Schema.define(:version => 5) do > > create_table "book_categories", :force => true do |t| > t.integer "category_id" > t.integer "book_id" > end > > create_table "books", :force => true do |t| > t.string "title" > t.string "author" > t.text "description" > end > > create_table "categories", :force => true do |t| > t.string "area" > t.string "name" > end > > end > ------------------------------------------------------------------------- > > On Jun 18, 5:47 pm, "Giorgio Clavelli" <[EMAIL PROTECTED]> > wrote: > > > I'm not an expert and I try a long shot. Have you set the foreign keys > > (1 to many to BookCategories from both Book and Categories), when you > > created the tables by the migrations? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to heroku@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/heroku?hl=en -~----------~----~----~----~------~----~------~--~---