acts_as_commentable_with_threading
acts_as_commentable_with_threading copied to clipboard
adding new db column
I have added new column to my comments
database called is_image
and it's a boolean
.
In my form I have added:
= f.input :is_image
And in my controller, I have added it inside comment_params
, permit
.
But even when it's checked in form, is_image
is still false
in my database.
How can I fix it so when is_image
is checked it changes false
to true
.
Thanks in advanced!
Did you resolve this? I am trying to add a column to my comments table too and experiences the same thing