I’m sorry to post such a trivial question but…
I have a table for comments. And I can fill it normally:
@tab = Tab.find(params[:id])
@tab.comments.create(:body => ‘This is the body 1’)
I am able to correctly see their contents this way:
I can also see its ID with:
puts @tab.comments.id (22 for example)
So it is fine to add rows and check the right contents.
I am able to delete all the comments with:
However I am unable to delete a row in the table…
I’ve tried several things but as far as I know from some examples that
I’m I doing something very wrong?
Thanks once again.