[Rails] Re: Re: Associations join
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 :')
--
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-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