Re: [Rails] Couldn't find Comment without an ID

2011-04-20 Thread Trevor Oke
On Tue, Apr 19, 2011 at 1:52 PM, Neil Bye wrote: > Im trying to makee an application that allows subcomments ie comments on > comments. The point where I get stuck is finding the comment that is > commented on. > > This is an excerpt from subcomment.rb > > def create >    @comment = Comment.find(p

[Rails] Couldn't find Comment without an ID

2011-04-19 Thread Neil Bye
Im trying to makee an application that allows subcomments ie comments on comments. The point where I get stuck is finding the comment that is commented on. This is an excerpt from subcomment.rb def create @comment = Comment.find(params[:id]) @comment.subcomments.create( :comment_id => @co