Editing page

<%= error_messages_for :page %> <% form_for(:page, :url => page_path(@page), :html => { :method => :put }) do |f| %> <%= render :partial => 'page_form' %>

<%= submit_tag "Update" %>

<% end %> <% content_for :sidebar do -%> <%= new_page_link -%>
<%= show_page_link(@page) -%>
<% end -%>