我编写了一个自定义自动完成功能,可以在连接表上进行搜索
我确认搜索确实有效,但问题是jquery没有正确呈现结果
这是我的自定义自动填充方法
override func touchesBegan(touches: Set<NSObject>, withEvent event: UIEvent) {
//function call
}
这是视图
var Swipe = UISwipeGestureRecognizer(target: self, action: Selector("handleSwipes:"))
Swipe.direction = .Up
//Swipe.cancelsTouchesInView = true did not make a difference
view.addGestureRecognizer(Swipe)
结果没有正确呈现,但我知道它在那里!
答案 0 :(得分:0)
您的数据自动完成功能&#39;属性设置不正确。试试这个:
<%= text_field_tag :search, params[:search], :class => "search-query", :placeholder => "Address search", :type => "search", "data-autocomplete" => autocomplete_property_address_properties_path, :id_element => '', :update_elements => {} %>