From 373321beefdb3fcc60f7f8bd366eb0b17425450a Mon Sep 17 00:00:00 2001 From: ilya Date: Mon, 16 Aug 2010 14:52:59 -0700 Subject: [PATCH] DG IZ made the selector box going to the right thing by passing only the id --- app/controllers/requests_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/requests_controller.rb b/app/controllers/requests_controller.rb index 756087d31..fd6cfc74f 100644 --- a/app/controllers/requests_controller.rb +++ b/app/controllers/requests_controller.rb @@ -8,7 +8,7 @@ class RequestsController < ApplicationController def destroy if params[:accept] - @friend = current_user.accept_and_respond( params[:id], current_user.group_by_id(params[:group_id])) + @friend = current_user.accept_and_respond( params[:id], params[:group_id]) flash[:notice] = "you are now friends" redirect_to root_url