# Problem with acts\_as\_commentable Plugin

**URL:** <https://www.ruby-forum.com/t/problem-with-acts-as-commentable-plugin/182098>\
**Category:** Rails\
**Created:** [January 22, 2010, 5:32pm UTC](https://www.ruby-forum.com/t/problem-with-acts-as-commentable-plugin/182098 "2010-01-22T17:32:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LeonS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/c77e96/32.png) [@LeonS](https://www.ruby-forum.com/u/LeonS)\
**Post date:** [January 22, 2010, 5:32pm UTC](https://www.ruby-forum.com/t/problem-with-acts-as-commentable-plugin/182098/1 "2010-01-22T17:32:07Z")

</div>

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?
