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