Hi I have following tables: Ressort -name
Worker -name -ressort_id then i defined that Worker belongs_to :ressort and Ressort has_many: workers Then I did rake db:migrate And now I try to show all workers belongig to a ressort from console: Ressort.find(1).workers but get: NoMethodError: undefined method `workers' for #<Ressort: 0x2a7cc98> Is it because i have to create new worker and ressort entries first now, or is my console request wrong? BR rogi -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

