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

16 lines
418 B
Plaintext

<h1>Editing page</h1>
<%= error_messages_for :page %>
<% form_for(:page, :url => page_path({ :id => @page.title_for_url }), :html => { :method => :put }) do |f| %>
<%= render :partial => 'page_form' %>
<p>
<%= submit_tag "Update" %>
</p>
<% end %>
<% content_for :sidebar do -%>
<%= link_to 'Show', page_path({ :id => @page.title_for_url }) %><br />
<%= link_to 'Browse Pages', pages_path %><br />
<% end -%>