[Rails] Re: has_many relation - NoMethodError
Nothing, I only had the typo here.
So, still facing the problem!
class Ressort < ActiveRecord::Base
has_many :workers
end
On Feb 20, 1:40 pm, Michael Pavling <pavl...@gmail.com> wrote:
> On 20 February 2011 12:33, rogi <patrik.kel...@googlemail.com> wrote:
>
> > Ressort
> > has_many: workers
>
> typo:
> has_many :workers
>
> ...move the colon, and see what happens.
--
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