def search
      page_info
      @page_info.record = SearchPopup.new(model, params[:edgarj_search_form])
      @page_info.update_attribute(:page, 1)
      @search   = @page_info.record
      prepare_list  if @search.valid?
    end
def search
      page_info
      @page_info.record = SearchPopup.new(model, params[:edgarj_search_form])
      @page_info.update_attribute(:page, 1)
      @search   = @page_info.record
      prepare_list  if @search.valid?
    end
Ajax method to execute search

 Actually, this saves condition for later use.
 Execution of search could be done at 'index' method, but
 do it in this action to avoid 'POST' redirect issue(
 POST method redirect resulted in 'POST index', not 'GET index').

 === INPUTS
 params[:id_target]::          id target DOM on click entry of popup
 params[:edgarj_search_form]::  search condition