%= form_for(@search_engine) do |f| -%>
<% if @search_engine.errors.any? %>
<%= pluralize(@search_engine.errors.count, "error") %> prohibited this search_engine from being saved:
<% @search_engine.errors.full_messages.each do |msg| %>
- <%= msg %>
<% end %>
<% end %>
<%= f.label :name -%>
<%= f.text_field :name -%>
<%= f.label :url -%>
<%= f.url_field :url, class: 'resource_url' -%>
<%= f.label :base_url -%>
<%= f.text_area :base_url, class: 'resource_textarea' -%>
<%= f.label :http_method -%>
<%= f.select :http_method, ['get', 'post'] -%>
<%= f.label :query_param -%>
<%= f.text_field :query_param -%>
<%= f.label :additional_param -%>
<%= f.text_area :additional_param, class: 'resource_textarea' -%>
<%= f.label :note -%>
<%= f.text_area :note, class: 'resource_textarea' -%>
<%= f.submit %>
<%- end -%>