undefined method `eq’ for nil:NilClass with rails 3 and ruby enterprise on ubuntu hardy

to answer my own question: after some research i found out that rails (activerecord) needs id fields on tables that are mapped to models. if you use linktables they are not needed – but for tables you want to adress as models, they are. in my case the solution was to add

set_primary_key :cal_id

where cal_id is my unique key.

Leave a Comment