We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have added new column to my comments database called is_image and it's a boolean.
comments
is_image
boolean
In my form I have added: = f.input :is_image
= f.input :is_image
And in my controller, I have added it inside comment_params, permit.
comment_params
permit
But even when it's checked in form, is_image is still false in my database.
false
How can I fix it so when is_image is checked it changes false to true.
true
Thanks in advanced!
The text was updated successfully, but these errors were encountered:
Did you resolve this? I am trying to add a column to my comments table too and experiences the same thing
Sorry, something went wrong.
No branches or pull requests
I have added new column to my
comments
database calledis_image
and it's aboolean
.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 stillfalse
in my database.How can I fix it so when
is_image
is checked it changesfalse
totrue
.Thanks in advanced!
The text was updated successfully, but these errors were encountered: