(undefined method `belongs_to' for ListItem:Class [NoMethodE


I’m implementing the example in the agile web development with rails.
In the Order line_item Product relationship setting.
I got the error while include “belongs to :product” in line_item.rb

And I found

about a patch that fix the problem

ANyone knows if there is anyway to fix it without this old patch?


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs