parent
17cb97828d
commit
6e1913d00d
@ -0,0 +1,18 @@
|
|||||||
|
<%= labelled_form_for(@memo, :url => forum_memos_path) do |f| %>
|
||||||
|
<% if @memo.errors.any? %>
|
||||||
|
<div id="error_explanation">
|
||||||
|
<h2><%= pluralize(@memo.errors.count, "error") %> prohibited this memo from being saved:</h2>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<% @memo.errors.full_messages.each do |msg| %>
|
||||||
|
<li><%= msg %></li>
|
||||||
|
<% end %>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<div class="actions">
|
||||||
|
<p><%= f.text_field :subject, :required => true %></p>
|
||||||
|
<p><%= f.text_field :content, :required => true, :size => 80 %></p>
|
||||||
|
<%= f.submit %>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
@ -1,5 +1,5 @@
|
|||||||
<h1>New memo</h1>
|
<h1>New memo</h1>
|
||||||
|
|
||||||
<%= render :partial => 'form' %>
|
<%= render :partial => 'memos/topic_form' %>
|
||||||
|
|
||||||
<%= link_to 'Back', forums_path(@forum) %>
|
<%= link_to 'Back', forums_path(@forum) %>
|
Loading…
Reference in new issue