<% form_for(@flatpage) do |f| %> <%= f.error_messages %>

<%= f.label :title %>
<%= f.text_field :title %>

<%= f.label :url %>
<%= f.text_field :url %>

<%= f.label :template %>
<%= f.text_field :template %>

<%= f.label :body %>
<%= f.text_area :body, :class => "mceEditor" %>

<%= f.label :is_active %>
<%= f.check_box :is_active %>

<%= f.submit "Create" %>

<% end %>