How to use acts-as-commentable-with-threading in Rails
Posted
by alex
on Stack Overflow
See other posts from Stack Overflow
or by alex
Published on 2010-05-26T22:56:28Z
Indexed on
2010/05/26
23:01 UTC
Read the original article
Hit count: 483
Hi All, I am developing my first rails site (yup, i am a rails idiot). I'm writing a blog, and i got to the comments part. I installed acts-as-commentable-with-threading ( GitHub ), i made and ran the migration like the install instructions said. I have added acts_as_commentable to my Posts model and i have a Comments controller When i add
@comment = Comment.build_from(params[:id],1, params[:body] )
I get the error. undefined method `build_from' for #
Clearly i am doing something terribly wrong, and i don't really get the example. What should i be feeding to build_from? Can somebody explain this plugin step by step? :)
Or is there an easier way to get simple threaded comments?
© Stack Overflow or respective owner