Hi I have done this so far... First of all I installed Active Scaffold 1. Created a model for a table named products (modelname: product) 2. Run rake db_migrate so I have a nice table with a bunch of fields 3. Created a model for a table named categories (modelname :category) 4. Now I want a small tiby and nice looking subform on my create new product page where my client can choose to which category this product belongs to. 5. So I create a migration to add a table for the relations to be stored in 6. So I open up the model file and write for product.rb has_many :products_categories has_many :categories, :through => :products_categories 7. And I open up the category.rb file and adds belongs_to_and_has_many :products 8. Nothing works! Please help me! -- ---------------------------------------------------- Andreas Kviby Telefon 070-352 66 76 E-post akviby-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---