This is the form that I made from Clients_index我正在使用弹性搜索来查找客户端的名称。我创建了一个搜索但是一旦你点击搜索它就会转到第二页。 It takes me here 这是我对Clients / _index.html.erb
的看法<div class="module existing-ads">
<div class="first-column">
<div class="field-content">
=render 'clients/index'
我是从AdGroups / index.html.haml
渲染的class ClientsController < ApplicationController
def index
@clients = Client.search((params[:name].present? ? params[:name]: '*')).records
render :partial => 'clients/index', locals: {clients: @clients}
end
end
这是我的客户控制器
IEnumerator Show()
{
while (true) // or show
{
yield return new WaitForSeconds(2f);
round ++;
if (round >= 1 && round <= 4)
on = Random.Range(1,5);
green.GetComponent<Renderer>().material = on == 1 ? greenMat : greenOff;
//Same for the other...
}
}
知道为什么吗?