From b71e809f34f3cc3c15f2f09623ef021911cd4386 Mon Sep 17 00:00:00 2001 From: Benjamin Meichsner Date: Fri, 28 May 2010 12:01:19 +0200 Subject: [PATCH] Fixed ajax bug on categories page. --- app/controllers/article_categories_controller.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/controllers/article_categories_controller.rb b/app/controllers/article_categories_controller.rb index c4130017..944c1717 100644 --- a/app/controllers/article_categories_controller.rb +++ b/app/controllers/article_categories_controller.rb @@ -62,10 +62,9 @@ class ArticleCategoriesController < ApplicationController @article_category = ArticleCategory.find(params[:id]) @article_category.destroy - #id = @article_category.id.to_s #save the id before destroying the object if @article_category.destroy render :update do |page| - page['category_'+@article_category.id].visual_effect :drop_out + page['category_'+@article_category.id.to_s].visual_effect :drop_out end end end