Kevin Hastie wrote:
> a) Am I doing this right?

Apparently not.

Weird.  Is it because I didn't do polymorphic anywhere that Address now 
has a business_id, a credit_card_id and a user_id? Obviously this is no 
good - I'd prefer the Business table to have an address_id, etc....  So:

e) Did I do this backwards? Should it be Business address:references (or 
address:belongs_to?) and Address business:has_one?

f) Or should I just drop the :references from Addresses and go from 
there?

g) Is using :references (which I don't see in many docs/tutorials) just 
going to get me in trouble as a beginner?

Thanks again!
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to