= form_for [:moderation, @note] do |f| = hidden_field_tag :envoiParMail, params[:envoiParMail] - if @note.errors.any? #error_explanation %h2= "#{pluralize(@note.errors.count, "error")} prohibited this note from being saved:" %ul - @note.errors.full_messages.each do |msg| %li= msg .field %p.label= f.label Note.human_attribute_name :contents = f.text_area :contents, cols: 70, rows: 10 .actions = f.submit t('save')