<%= form_for(@page) do |f| %> <% if @page.errors.any? %>

<%= pluralize(@page.errors.count, "error") %> prohibited this page from being saved:

<% end %>
<%= f.label :category_id %>
<%= f.select :category_id, Category.all.collect {|c| [ c.name, c.id ] } %>
<%= f.label :language %>
<%= f.select :language, options_for_select(I18n.available_locales, I18n.locale.to_sym) %>
<%= f.label :title %>
<%= f.text_field :title %>
<%= f.label :summary %>
<%= f.text_area :summary %>
<%= f.label :body %>
<%= f.text_area :body %>
<%= f.submit %>
<% end %>