app/controllers/entities/opportunities_controller.rb
def redraw
    @opportunities = get_opportunities(page: 1, per_page: per_page_param)
    set_options # Refresh options

    respond_with(@opportunities) do |format|
      format.js { render :index }
    end
  end
# GET /opportunities/redraw                                              AJAX
#----------------------------------------------------------------------------
GET /opportunities/redraw                                              AJAX
GET / opportunities / redraw AJAX
def redraw
    @opportunities = get_opportunities(page: 1, per_page: per_page_param)
    set_options 
    respond_with(@opportunities) do |format|
      format.js { render :index }
    end
  end
def redraw @opportunities = get_opportunities ( page : 1 , per_page : per_page_param ) set_options respond_with ( @opportunities ) do | format | format . js { render :index } end end
GET /opportunities/redraw                                              AJAX
GET / opportunities / redraw AJAX
# Refresh options