= form_for(@message_route) do |f| - if @message_route.errors.any? #error_explanation %h2 = pluralize(@message_route.errors.count, "error") prohibited this message_route from being saved: %ul - @message_route.errors.full_messages.each do |msg| %li = msg .field = f.label :message_type_id %br = f.collection_select :message_type_id, MessageType.all(:order => "name asc"), :id, :name .field = f.label :incoming_status %br = f.text_field :incoming_status .field = f.label :match_errors (Overrides incoming status) %br = f.check_box :match_errors .field = f.label :dispatch_to %br = f.text_field :dispatch_to .actions = f.submit