<% disabled = false if local_assigns[:disabled].nil? %>

<!-- privacy toggle -->

<%= form_for(content, remote: true, html: {role: :form, 'data-model': content.class.model_name}) do |form|%>
  <div class="switch">
    <div class="col s6">
      <b><%= content.name %></b>’s privacy setting:
    </div>
    <label class="col s6 right-align">
        private
        <%= form.check_box :privacy, { onchange: '$(this).submit();' }, 'public', 'private' %>
        <span class="lever"></span>
        public
    </label>
  </div>
<%end%>

<%= form_for(content, remote: true, html: {role: :form, 'data-model': content.class.model_name}) do |form|%>
  <div class="switch">
    <div class="col s6">
      <b><%= content.name %></b>’s privacy setting:
    </div>
    <label class="col s6 right-align">
        private
        <%= form.check_box :privacy, { onchange: '$(this).submit();' }, 'public', 'private' %>
        <span class="lever"></span>
        public
    </label>
  </div>
<%end%>

Remove "disabled" argument to privacy toggle
Remove "disabled" argument to privacy toggle
