app/controllers/your_data_controller.rb
def activities_list
    update_calendar_user_id
    if params[:search].nil? and session[:month].nil? and session[:year].nil?
      @activities = Activity.list({:user_id => @calendar_user_id}, {:page => params[:page], :per_page => 10})
    else
      prepare_search_dates
      params[:search][:user_id] = @calendar_user_id
      @activities = Activity.list(params[:search])
    end
  end
#
# Shows list of current user's activities, all or filtered by search conditions
#

Shows list of current user's activities, all or filtered by search conditions
Shows list of current user ' s activities all or filtered by search conditions
def activities_list
    update_calendar_user_id
    if params[:search].nil? and session[:month].nil? and session[:year].nil?
      @activities = Activity.list({:user_id => @calendar_user_id}, {:page => params[:page], :per_page => 10})
    else
      prepare_search_dates
      params[:search][:user_id] = @calendar_user_id
      @activities = Activity.list(params[:search])
    end
  end
def activities_list update_calendar_user_id if params [ :search ] . nil? and session [ :month ] . nil? and session [ :year ] . nil? @activities = Activity . list ( { :user_id => @calendar_user_id } , { :page => params [ :page ] , :per_page => 10 } ) else prepare_search_dates params [ :search ] [ :user_id ] = @calendar_user_id @activities = Activity . list ( params [ :search ] ) end end
Shows list of current user's activities, all or filtered by search conditions
Shows list of current user ' s activities all or filtered by search conditions