diff --git a/app/controllers/my_profile/tasks_controller.rb b/app/controllers/my_profile/tasks_controller.rb index 0049f8c..0541cd3 100644 --- a/app/controllers/my_profile/tasks_controller.rb +++ b/app/controllers/my_profile/tasks_controller.rb @@ -13,7 +13,7 @@ class TasksController < MyProfileController def close decision = params[:decision] if request.post? && VALID_DECISIONS.include?(decision) && params[:id] - task = Task.find(params[:id]) + task = profile.tasks.find(params[:id]) task.update_attributes!(params[:task]) task.send(decision) end diff --git a/app/views/tasks/_add_friend.rhtml b/app/views/tasks/_add_friend.rhtml index 8cc9272..4a10784 100644 --- a/app/views/tasks/_add_friend.rhtml +++ b/app/views/tasks/_add_friend.rhtml @@ -4,16 +4,20 @@ <%= _('%s wants to connect to you as a friend.') % task.requestor.name %>
-<% labelled_form_for('task', task, :url => { :action => 'close', :id => task.id } ) do |f| %> +<% form_for('task', task, :url => { :action => 'close', :id => task.id } ) do |f| %>