Edit Page

<% form_for @page do |form| %> <%= form.label :title, "Title"%> <%= form.text_field :title %> <%= form.label :slug, "Slug" %> <%= form.text_field :slug %> <%= form.label :keywords, "Keywords" %> <%= form.text_field :keywords %> <%= form.label :description, "Description" %> <%= form.text_area :description %> <%= form.label :published, "Published?" %> <%= form.check_box :published %> <%= form.fields_for :parts do |builder| %> <%= render :partial => 'page_part_form', :form => builder %> <% end %> <%= submit_tag 'Edit Page' %> <% end %> <%= link_to "Back to pages", slightcms_pages_path %>