Forum: Ruby on Rails Problem with nested associations

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
3f91cf60c92b20940674ebdeb46f6582?d=identicon&s=25 Brian Smith (praufet)
on 2007-05-11 04:01
(Received via mailing list)
I have a department which has many courses which has many sections
however when I try to access
course.sections.create or create a section and save I get an error.

ActiveRecord::StatementInvalid: SystemStackError: stack level too
deep: SELECT * FROM courses WHERE (courses.department_id = 1)

Any ideas what's going on?
This topic is locked and can not be replied to.