I currently have the following models: class Category extends AppModel { var $name = \'Category\'; /*var $validate = array(
I\'ve been reading the cookbook for a while now and still don\'t get how I\'m supposed to do this: My original problem was this:
If I want to create a category and be able to link products to it by tags I can like so: Create the category and product
I have 2 models with a many-to-many relationship (simplified here with books-authors example): class Book < ActiveRecord::Base
I have band开发者_运维问答s, genres and bands_genres database tables with a HABTM relationship
If i have the following database table names in a HTBTM relantionship: **dressess** id **dresses开发者_开发百科s_categories**
What I have: \"A\" HABTM \"C\" HABTM \"A\" through join table \"B\" \"A\" hasMany \"B\" belongsTo \"A\"
I have a table called Landmarks and a table called Categories with a HABTM relationship to each other.I am trying to retrieve all the categories for a specific Landmark with the following code:
This problem occurred when I added a hasOne relationship to one of the habtm models. categories_posts now do not save anything in the database. I did before.
I have 2 models, sessions and presenters with a HABTM relationship between them. On the create session page, I would like to provide a drop down box from which the user may select multiple presenters