app/controllers/users_controller.rb
# show user's profile based on the ID, if not logged in the redirect to login
show user's profile based on the ID, if not logged in the redirect to login
show user ' s profile based on the ID if not logged in the redirect to login
def redirect_when_missing_params
      flash.keep
      redirect_to :action => "show",
                  :id => session[:user_id],
                  :unproc_sort => (params[:unproc_sort] ? params[:unproc_sort] : session[:unproc_sort]),
                  :proc_sort => (params[:proc_sort] ? params[:proc_sort] : session[:proc_sort])
  end
def redirect_when_missing_params flash . keep redirect_to :action => "show" , :id => session [ :user_id ] , :unproc_sort => ( params [ :unproc_sort ] ? params [ :unproc_sort ] : session [ :unproc_sort ] ) , :proc_sort => ( params [ :proc_sort ] ? params [ :proc_sort ] : session [ :proc_sort ] ) end
show user's profile based on the ID, if not logged in the redirect to login
show user ' s profile based on the ID if not logged in the redirect to login