22 lines
397 B
Plaintext
22 lines
397 B
Plaintext
<h1>Editing announcement</h1>
|
|
|
|
<% form_for(@announcement) do |f| %>
|
|
<%= f.error_messages %>
|
|
|
|
<p>
|
|
<%= f.label :title, "Title" %>
|
|
<%= f.text_field :title %>
|
|
</p>
|
|
|
|
<p>
|
|
<%= f.label :content, "Content" %>
|
|
<%= f.text_area :content %>
|
|
</p>
|
|
|
|
<p>
|
|
<%= f.submit 'Update' %>
|
|
</p>
|
|
<% end %>
|
|
|
|
<%= link_to 'Show', @announcement %> |
|
|
<%= link_to 'Back', announcements_path %> |