app/controllers/entities/opportunities_controller.rb
# POST /opportunities/filter                                             AJAX
#----------------------------------------------------------------------------
POST /opportunities/filter                                             AJAX
POST / opportunities / filter AJAX
def filter
    @opportunities = get_opportunities(page: 1, per_page: per_page_param)
    respond_with(@opportunities) do |format|
      format.js { render :index }
    end
  end
def filter @opportunities = get_opportunities ( page : 1 , per_page : per_page_param ) respond_with ( @opportunities ) do | format | format . js { render :index } end end
POST /opportunities/filter                                             AJAX
POST / opportunities / filter AJAX