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

13 lines
287 B
Plaintext

<h1>New announcement</h1>
<% form_for @announcement, :url => admin_announcements_path do |f| %>
<%= f.error_messages %>
<%= render :partial => "form", :locals => { :f => f } %>
<p>
<%= f.submit 'Create' %>
</p>
<% end %>
<%= link_to 'Back', admin_announcements_path %>