= form_for @page do |f| -if @page.errors.any? #error_explanation %h2= "#{pluralize(@page.errors.count, "error")} prohibited this page from being saved:" %ul - @page.errors.full_messages.each do |msg| %li= msg .field = f.label :user_id = f.number_field :user_id .field = f.label :title = f.text_field :title .field = f.label :content = f.text_area :content .actions = f.submit 'Save'