diff options
Diffstat (limited to 'app/controllers/refinery')
-rw-r--r-- | app/controllers/refinery/blog/admin/comments_controller.rb | 6 | ||||
-rw-r--r-- | app/controllers/refinery/blog/admin/posts_controller.rb | 2 | ||||
-rw-r--r-- | app/controllers/refinery/blog/posts_controller.rb | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/app/controllers/refinery/blog/admin/comments_controller.rb b/app/controllers/refinery/blog/admin/comments_controller.rb index 8565b28..18246ee 100644 --- a/app/controllers/refinery/blog/admin/comments_controller.rb +++ b/app/controllers/refinery/blog/admin/comments_controller.rb @@ -12,14 +12,14 @@ module Refinery def index @comments = Refinery::Blog::Comment.unmoderated.page(params[:page]) - render :action => 'index' + render :index end def approved unless params[:id].present? @comments = Refinery::Blog::Comment.approved.page(params[:page]) - render :action => 'index' + render :index else @comment = Refinery::Blog::Comment.find(params[:id]) @comment.approve! @@ -33,7 +33,7 @@ module Refinery unless params[:id].present? @comments = Refinery::Blog::Comment.rejected.page(params[:page]) - render :action => 'index' + render :index else @comment = Refinery::Blog::Comment.find(params[:id]) @comment.reject! diff --git a/app/controllers/refinery/blog/admin/posts_controller.rb b/app/controllers/refinery/blog/admin/posts_controller.rb index e48c00d..cbde2f8 100644 --- a/app/controllers/refinery/blog/admin/posts_controller.rb +++ b/app/controllers/refinery/blog/admin/posts_controller.rb @@ -66,7 +66,7 @@ module Refinery end else unless request.xhr? - render :action => 'new' + render :new else render :partial => "/refinery/admin/error_messages", :locals => { diff --git a/app/controllers/refinery/blog/posts_controller.rb b/app/controllers/refinery/blog/posts_controller.rb index bb242fd..bd579c4 100644 --- a/app/controllers/refinery/blog/posts_controller.rb +++ b/app/controllers/refinery/blog/posts_controller.rb @@ -51,7 +51,7 @@ module Refinery :anchor => "comment-#{@comment.to_param}") end else - render :action => 'show' + render :show end end |