This repository has been archived on 2020-05-27. You can view files and clone it, but cannot push or open issues/pull-requests.
barleysodas/app/views/pages/new.rhtml

17 lines
362 B
Plaintext

<h1>New page</h1>
<%= error_messages_for :page %>
<% form_for(:page, :url => pages_path) do |f| %>
<p>
<label for="page_title">Title</label> <%= text_field 'page', 'title' %>
</p>
<%= render :partial => 'page_form' %>
<p>
<%= submit_tag "Create" %>
</p>
<% end %>
<% content_for :sidebar do -%>
<%= link_to 'Browse Pages', pages_path %><br />
<% end -%>