2013-11-22 21:55:21 +08:00
|
|
|
<!-- %= form_for(@forum) do |f| % -->
|
|
|
|
<%= labelled_form_for(@forum) do |f| %>
|
2013-11-22 10:24:15 +08:00
|
|
|
<% if @forum.errors.any? %>
|
|
|
|
<div id="error_explanation">
|
|
|
|
<h2><%= pluralize(@forum.errors.count, "error") %> prohibited this forum from being saved:</h2>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<% @forum.errors.full_messages.each do |msg| %>
|
|
|
|
<li><%= msg %></li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
<div class="actions">
|
2013-11-22 21:55:21 +08:00
|
|
|
<p><%= f.text_field :name, :required => true %></p>
|
|
|
|
<p><%= f.text_field :description, :required => true, :size => 80 %></p>
|
2013-11-22 10:24:15 +08:00
|
|
|
<%= f.submit %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|