Skip to content
New issue

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

adding new db column #104

Open
Rubioli opened this issue May 13, 2016 · 1 comment
Open

adding new db column #104

Rubioli opened this issue May 13, 2016 · 1 comment

Comments

@Rubioli
Copy link

Rubioli commented May 13, 2016

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!

@eef
Copy link

eef commented Dec 5, 2016

Did you resolve this? I am trying to add a column to my comments table too and experiences the same thing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants