search for: thaiyoshi

Displaying 2 results from an estimated 2 matches for "thaiyoshi".

2006 Apr 04
4
Help with many-to-many using :through
I am using many-to-many using :through since I need to store additional information in the join table. I am doing this and it seems to work. I want to verify that this is the best way to do this. Tables foods - id, food foodallergies - food_id, symptom_id, a few other columns symptoms - id, symptom Models class Food < ActiveRecord::Base has_many :foodallergies has_many :symptoms,
2006 Apr 01
1
using find with multiple objects in active record
Hi, I am trying to learn to use RoR by making a simple social networking example. Given a user id, I am trying to make a query that finds all of the group that user belongs to but also rank the groups by one of the groups'' parameter like group.size. Pretend group.size is a number from 1-10 and is precalculated. Can I do this is one query? Here are the relationships I set up: class