Show More
Commit Description:
MERGE changeset 306:307 from branch ytopc08-2 that fixes migration bug...
Commit Description:
MERGE changeset 306:307 from branch ytopc08-2 that fixes migration bug git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@308 6386c4cd-e34a-4fa8-8920-d93eb39b512e
File last commit:
Show/Diff file:
Action:
app/views/announcements/new.html.erb | 31 lines | 495 B | text/plain | TextLexer |
<h1>New announcement</h1>
<%= error_messages_for :announcement %>
<% form_for(@announcement) do |f| %>
<p>
<b>Body</b><br />
<%= f.text_area :body %>
</p>
<p>
<b>Author</b><br />
<%= f.text_field :author %>
</p>
<p>
<b>Published</b><br />
<%= f.check_box :published %>
</p>
<p>
<b>Show on front page?</b><br />
<%= f.check_box :frontpage %>
</p>
<p>
<%= f.submit "Create" %>
</p>
<% end %>
<%= link_to 'Back', announcements_path %>