[Rails] Fixtures rejecting reference to 'belongs_to' association

2011-06-07 Thread ddoherty03
I have a stock-related rails app, and I want to test the Price model. Each price object represents daily price data for a single Equity, which in turn belongs to a single Issuer. I've run the test with the following fixtures and get this error: ===

Re: [Rails] Fixtures rejecting reference to 'belongs_to' association

2011-06-07 Thread Colin Law
On 7 June 2011 21:42, ddoherty03 ddohert...@gmail.com wrote: I have a stock-related rails app, and I want to test the Price model.  Each price object represents daily price data for a single Equity, which in turn belongs to a single Issuer.  I've run the test with the following fixtures and

Re: [Rails] Fixtures rejecting reference to 'belongs_to' association

2011-06-07 Thread Colin Law
On 7 June 2011 22:00, ddoherty03 ddohert...@gmail.com wrote: Colin, price.rb ===   class Price ActiveRecord::Base   belongs_to :equities That should be :equity, singular Colin -- You received this message because you are subscribed to the

Re: [Rails] Fixtures rejecting reference to 'belongs_to' association

2011-06-07 Thread ddoherty03
Thanks, Colin. That did it. You 'da man. Snow blindness strikes again. Regards, -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To view this discussion on the web visit