Skip to content

Instantly share code, notes, and snippets.

@speedracr
speedracr / form_tag.rb
Created June 23, 2017 13:57
Rails search field
<%= form_tag('/search', local: true, method: :get, class: 'form-inline' ) do %>
<%= text_field_tag(:q, nil, data: { behavior: 'autocomplete' }, placeholder: 'Search', class: 'form-control mr-sm-2') %>
<%= button_tag('Search', class: 'btn btn-outline-success my-2 my-sm-0', type: 'submit') %>
<% end %>
| Countries | Capitals | Population | Language |
|-----------|-----------------|-------------|----------|
| USA | Washington D.C. | 309 million | English |
| Sweden | Stockholm | 9 million | Swedish |

Keybase proof

I hereby claim:

  • I am speedracr on github.
  • I am jdk (https://keybase.io/jdk) on keybase.
  • I have a public key whose fingerprint is ACE0 E41E FF52 47AA 5B7A 1526 0967 4CDD 5E90 03F8

To claim this, I am signing this object: