Sha256: 2c10a2358cef420b88722e142d38aaa0ccbfcac5e2dd5a886cfe802396a8752c

Contents?: true

Size: 1.23 KB

Versions: 55

Compression:

Stored size: 1.23 KB

Contents

<%= form_for(@search_engine) do |f| -%>
  <% if @search_engine.errors.any? %>
  <div id="errorExplanation">
    <h2><%= pluralize(@search_engine.errors.count, "error") %> prohibited this search_engine from being saved:</h2>
    <ul>
    <% @search_engine.errors.full_messages.each do |msg| %>
      <li><%= msg %></li>
    <% end %>
    </ul>
  </div>
  <% end %>

  <div class="field">
    <%= f.label :name -%><br />
    <%= f.text_field :name -%>
  </div>
  <div class="field">
    <%= f.label :url -%><br />
    <%= f.url_field :url, class: 'resource_url' -%>
  </div>
  <div class="field">
    <%= f.label :base_url -%><br />
    <%= f.text_area :base_url, class: 'resource_textarea' -%>
  </div>
  <div class="field">
    <%= f.label :http_method -%><br />
    <%= f.select :http_method, ['get', 'post'] -%>
  </div>
  <div class="field">
    <%= f.label :query_param -%><br />
    <%= f.text_field :query_param -%>
  </div>
  <div class="field">
    <%= f.label :additional_param -%><br />
    <%= f.text_area :additional_param, class: 'resource_textarea' -%>
  </div>
  <div class="field">
    <%= f.label :note -%><br />
    <%= f.text_area :note, class: 'resource_textarea' -%>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<%- end -%>

Version data entries

55 entries across 53 versions & 2 rubygems

Version Path
enju_library-0.1.2 app/views/search_engines/_form.html.erb
enju_library-0.1.1 app/views/search_engines/_form.html.erb
enju_library-0.1.0 app/views/search_engines/_form.html.erb
enju_library-0.1.0.pre45 app/views/search_engines/_form.html.erb
enju_library-0.1.0.pre44 app/views/search_engines/_form.html.erb
enju_library-0.1.0.pre43 app/views/search_engines/_form.html.erb
enju_library-0.1.0.pre42 app/views/search_engines/_form.html.erb
enju_library-0.1.0.pre41 app/views/search_engines/_form.html.erb
enju_library-0.1.0.pre40 app/views/search_engines/_form.html.erb
enju_library-0.1.0.pre39 app/views/search_engines/_form.html.erb
enju_library-0.1.0.pre38 app/views/search_engines/_form.html.erb
enju_library-0.1.0.pre37 app/views/search_engines/_form.html.erb
enju_library-0.1.0.pre36 app/views/search_engines/_form.html.erb
enju_library-0.1.0.pre35 app/views/search_engines/_form.html.erb
enju_library-0.1.0.pre34 app/views/search_engines/_form.html.erb