Problem with acts_as_commentable Plugin

Hi,

i’m trying to use the acts as commentable Plugin, bit it seems not to
work:

My Commentable Model is the Task Class.

if i try to get the Comments of a Task Object , e.g.

task.find(:first)
task.comments

it occurs this error:

ActiveRecord::StatementInvalid: Mysql::Error: Unknown column
‘comments.task_id’ in ‘where clause’: SELECT * FROM comments WHERE
((comments.task_id = 4)) ORDER BY created_at ASC

What do i made wrong?

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