search for: features_restaur

Displaying 1 result from an estimated 1 matches for "features_restaur".

2006 Aug 22
0
Re: Problem with find condition and habtm relationship.
...me time now. Please bare with me > while I explain the situation to make things clear. > > I''m making a restaurant directory in RoR. I have a table of > Restaurants > and a table of Features which both have a habtm relationship with each > other using a jointable called features_restaurants which has the > fields feature_id and restaurant_id. > > So restaurants can belong to many different features such as > "vegitarian menu", "child friendly" etc. In the view checkboxes are > dynamically created for each feature using the following code: > &g...