12 lines
325 B
Plaintext
12 lines
325 B
Plaintext
![]() |
.search
|
||
|
= form_tag search_path, method: :get do |f|
|
||
|
= text_field_tag "search", nil, placeholder: "Search", class: "search-input"
|
||
|
|
||
|
:javascript
|
||
|
$(function(){
|
||
|
$("#search").autocomplete({
|
||
|
source: #{raw search_autocomplete_source},
|
||
|
select: function(event, ui) { location.href = ui.item.url }
|
||
|
});
|
||
|
});
|