Sha256: 527b2ecab591e2aa328b5eb4788ae9d55a8327e768986324449db1673a639663
Contents?: true
Size: 758 Bytes
Versions: 5
Compression:
Stored size: 758 Bytes
Contents
<%= form_for Illustration.new, url: search_illustrations_path, html: { id: 'search-form' }, method: :get do |f| %> <%#= f.error_notification %> <%= f.text_field :name, label: false, required: false, placeholder: 'search by illustration name', size: 35, as: :string, autofocus: 'autofocus', id: 'illustration_name', :wrapper_html => { :id => 'name' }, :autocomplete => 'off', :data => { provide: 'typeahead', items: 10, source: Illustration.alphabetically.map(&:name).to_json } %> <%= f.submit 'find graphic', :class => 'btn btn-xs btn-primary' %> <% end %>
Version data entries
5 entries across 5 versions & 1 rubygems