Displaying 4 results from an estimated 4 matches for "feature_id".
2006 Aug 22
0
Re: Problem with find condition and habtm relationship.
...xplain 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:
>
> <%= start_form_tag :action => ...
2010 Jan 25
15
database design question: building features
...ata.
(see attached ERD diagram)
OPTION A
Properties
name
address
has_pool
has_doorman
has_etc. (a bunch of values, not all boolean)
=OR=
OPTION B
Properties
id
name
address
Features
id
title
featurable_type (polymorphic, in this case points to "property.id")
data_type
Feature_Data
id
feature_id
featureable_id (polymorphic, in this case points to "property.id")
My ingoing assumption is that we do not know all the features that can
be associated with a property, and as time goes by new features will be
requested by users and need to be added. Here is my question: is going
to the...
2017 Jan 02
2
FLAC 1.3.2 has been released
Janne Hyvärinen wrote:
> Something seems to be wrong with cpu.c CPU detection code. When I
> compile things with MSVC all instructions except FMA is detected as
> missing, even though they are present in my CPU. That of course results
> in awful performance.
What Windows version and CPU was this?
Erik
--
----------------------------------------------------------------------
Erik
2006 Apr 19
0
Many to many relationship...I think
Hello, I have an issue.
I have a users table (id,name)
Eg. 1, cmircea
Another table called features (id,feature)
Eg. 1,hair colour; 2,eye colour; 3,interests
Another table called attributes (id,feature_id,attribute)
Eg.
1,2,blue; 2,2,green; 3,2,black
3,3,computers; 4,3,music; 5,3,reading
How do I make the connection between users and attributes table?
So basically I want to set for every user hair colour, eye colour, and
interests?
Thanks.
--
Posted via http://www.ruby-forum.com/.