Can't get checkbox to show up on web app

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

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

I am using MaterializedCSS as well.

Try to change the id format to

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

You can also use check_box_tag