<%= form_for(@moderator) do |f| %>
  <% if @moderator.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@moderator.errors.count, "error") %> prohibited this moderator from being saved:</h2>

      <ul>
      <% @moderator.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :user_id %><br />
    <%= f.text_field :user_id %>
  </div>
  <div class="field">
    <%= f.label :board_id %><br />
    <%= f.select :board_id, Board.all.collect{|board|[board.name, board.id]} %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
