<%= form_for @forum do |f| %>
<% if @forum.errors.any? %>
<% flash.now[:error] = @forum.errors.full_messages.join(', and ') %>
<% end %>
<%= f.label :category_id %>
(Required)
<%= f.collection_select :category_id, Category.all, :id, :title %>
<%= f.label :title %>
(Required)
<%= f.text_field :title, :size => 75 %>
<%= f.label :description %>
(Required)
<%= f.text_area :description, :cols => 60, :rows => 5 %>
<%= f.label :position %>
<%= f.text_field :position %>
<%= f.check_box :state %>
<%= f.label :state %>
<% end %>