Re: [Rails] Re: Re: Associations join
On 20 June 2012 08:39, Timen E. <lists@ruby-forum.com> wrote:
> Colin Law wrote in post #1065209:
>> On 19 June 2012 13:38, Timen E. <lists@ruby-forum.com> wrote:
>>>
>>> class Cardlevel < ActiveRecord::Base
>>> belongs_to :users
>>> belongs_to :cards
>>
>> Those should both be singular (:user and :card). Each cardlevel
>> belongs to one user and card so they should be singular.
>>
>> Colin
>
> That sounds fair indeed, however when i tried i still got the same
> error. This associations got me so bloody confused :')
Post the code for the models, the code that generates the error (with
a few lines each side) and the full error message.
Colin
--
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-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home