Skip to content

adding new db column #104

Description

@Rubioli

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions