orbit-basic/app/views/announcements/new.html.erb

21 lines
354 B
Plaintext

<h1>New 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 'Create' %>
</p>
<% end %>
<%= link_to 'Back', announcements_path %>