has-many Questions

4

Solved

In my application, a user has_many tickets. Unfortunately, the tickets table does not have a user_id: it has a user_login (it is a legacy database). I am going to change that someday, but for now t...
Looseleaf asked 30/11, 2008 at 10:8

1

Solved

Sorry, if this is a noobish question, but I'm just getting started with Rails and jQuery. I have the following scenario: I have 3 classes: contacts, companies and contact_company_joins (ccj). For...
Streetcar asked 4/11, 2008 at 0:47

2

Solved

Suppose you have two models, User and City, joined by a third model CityPermission: class CityPermission < ActiveRecord::Base belongs_to :city belongs_to :user end class City < ActiveReco...
Drippy asked 21/10, 2008 at 22:37

© 2022 - 2024 — McMap. All rights reserved.