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/edit.rhtml

19 lines
511 B
Plaintext
Raw Normal View History

<h1>Editing page</h1>
<%= error_messages_for :page %>
<% form_for(:page, :url => page_path({ :id => @page.title_for_url }), :html => { :method => :put }) do |f| %>
<p>
<label for="page_title">Title</label> <%= text_field 'page', 'title' %>
</p>
<p>
<label for="page_redcloth">Description</label> <%= text_area 'page', 'redcloth' %>
</p>
<p>
<%= submit_tag "Update" %>
</p>
<% end %>
<%= link_to 'Show', page_path({ :id => @page.title_for_url }) %> |
<%= link_to 'Back', pages_path %>