ensl.org/app/views/posts/_form.html.erb

13 lines
247 B
Text

<%= form_for(@post) do |f| %>
<%= f.error_messages %>
<%= f.hidden_field :topic_id %>
<p>
Topic: <%= namelink @post.topic %>
</p>
<p>
<%= f.text_area :text, :rows => 15, :cols => 108 %>
</p>
<p>
<%= f.submit 'Save' %>
</p>
<% end %>