From 8cf81202fa9e67632e3ce5bd1150112921ec502a Mon Sep 17 00:00:00 2001 From: AntonioTerceiro Date: Mon, 11 Feb 2008 19:28:07 +0000 Subject: [PATCH] ActionItem154: minor change: presenting a notice after setting homepage --- app/controllers/my_profile/cms_controller.rb | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/app/controllers/my_profile/cms_controller.rb b/app/controllers/my_profile/cms_controller.rb index a1d53b5..97ba5a6 100644 --- a/app/controllers/my_profile/cms_controller.rb +++ b/app/controllers/my_profile/cms_controller.rb @@ -84,6 +84,7 @@ class CmsController < MyProfileController @article = profile.articles.find(params[:id]) profile.home_page = @article profile.save! + flash[:notice] = _('Artigo "%s" configurado como página inicial.') % @article.name redirect_to :action => 'view', :id => @article.id end -- libgit2 0.21.2