# Can't get checkbox to show up on web app

**URL:** <https://www.ruby-forum.com/t/cant-get-checkbox-to-show-up-on-web-app/262906>\
**Category:** Ruby\
**Tags:** about\
**Created:** [May 16, 2022, 9:35pm UTC](https://www.ruby-forum.com/t/cant-get-checkbox-to-show-up-on-web-app/262906 "2022-05-16T21:35:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shansiddiqui94](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b77776/32.png) [@shansiddiqui94](https://www.ruby-forum.com/u/shansiddiqui94)\
**Post date:** [May 16, 2022, 9:35pm UTC](https://www.ruby-forum.com/t/cant-get-checkbox-to-show-up-on-web-app/262906/1 "2022-05-16T21:35:31Z")

</div>

Hello,

I am currently using the newest version of Ruby to build my application. I am just about done. However I am stuck with an issue, I created a checkbox to allow users to check what makes it to the home page and what doesn’t. Here is my code below, but for some reason, the actual check-box is not working? What am I doing wrong?

My [GitHub](https://github.com/shansiddiqui94/YourVids/blob/main/app/views/pages/home.html.erb)

```auto
<div class="field">
    <%= form.check_box :public, id: :public, class: "filled-in"%>
    <label for="public">Public</label>
  </div>

```

I am using MaterializedCSS as well.

---

<div class="post-metadata">

**Author:** ![infinity\_universe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/82dd89/32.png) [@infinity\_universe](https://www.ruby-forum.com/u/infinity_universe)\
**Post date:** [May 24, 2022, 12:32am UTC](https://www.ruby-forum.com/t/cant-get-checkbox-to-show-up-on-web-app/262906/2 "2022-05-24T00:32:26Z")

</div>

Try to change the `id` format to

```auto
    <%= form.check_box :public, id: 'public', class: 'filled-in' %>

```

You can also use [check\_box\_tag](https://apidock.com/rails/ActionView/Helpers/FormTagHelper/check_box_tag)
