<% form_for [:admin, @page] do |f| -%> <%= f.error_messages %>
<%= f.label :url, "URL" %> <%= f.text_field :url %> This can be an existing controller_name/action_name combo, or a completely new URL.
<%= f.label :title, "Title" %> <%= f.text_field :title %>
Robots <%= f.check_box :noindex %> <%= f.label :noindex, "No-Index", :class => 'inline' %> <%= f.check_box :nofollow %> <%= f.label :nofollow, "No-follow", :class => 'inline' %> <%= f.check_box :enable_canonical %> <%= f.label :enable_canonical, "Set Canonical Tag?", :class => 'inline' %> <%= f.label :canonical, "Canonical URL" %> <%= f.text_field :canonical %>
<%= f.label :description, "Description" %> <%= f.text_area :description, :class => "small-text" %>
<%= f.label :keywords, "Keywords" %> <%= f.text_field :keywords %>
<%= f.label :content, "Content" %> <%= f.text_area :content %>
<%= f.submit "Save" %> or <%= link_to "Cancel", admin_pages_path %> <% end -%>