app/controllers/entities/conferences_controller.rb
# GET /Conferences/redraw                                                  AJAX
#----------------------------------------------------------------------------
GET /Conferences/redraw                                                  AJAX
GET / Conferences / redraw AJAX
def redraw
    current_user.pref[:conferences_per_page] = params[:per_page] if params[:per_page]
    current_user.pref[:conferences_sort_by]  = Conference.sort_by_map[params[:sort_by]] if params[:sort_by]
    @conferences = get_conferences(page: 1, per_page: params[:per_page])
    set_options 
    respond_with(@conferences) do |format|
      format.js { render :index }
    end
  end
def redraw current_user . pref [ :conferences_per_page ] = params [ :per_page ] if params [ :per_page ] current_user . pref [ :conferences_sort_by ] = Conference . sort_by_map [ params [ :sort_by ] ] if params [ :sort_by ] @conferences = get_conferences ( page : 1 , per_page : params [ :per_page ] ) set_options respond_with ( @conferences ) do | format | format . js { render :index } end end
GET /Conferences/redraw                                                  AJAX
GET / Conferences / redraw AJAX
# Refresh options