From e96e8f563c2ab6917eec48d764550e04f30015a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathieu=20Gagn=C3=A9?= Date: Fri, 12 Dec 2014 14:52:50 -0500 Subject: [PATCH] Fixes georgia blog post creation --- app/controllers/georgia/pages_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/georgia/pages_controller.rb b/app/controllers/georgia/pages_controller.rb index acb39fd..cb5ef98 100644 --- a/app/controllers/georgia/pages_controller.rb +++ b/app/controllers/georgia/pages_controller.rb @@ -9,7 +9,7 @@ class PagesController < ApplicationController def show if @page authorize @page - redirect_to [:edit, @page, @page.current_revision] + redirect_to edit_page_revision_path(@page, @page.current_revision) else authorize Georgia::Page redirect_to [:search, model], alert: "This #{instance_name} has been deleted." @@ -20,7 +20,7 @@ def show def edit if @page and @page.current_revision authorize @page - redirect_to [:edit, @page, @page.current_revision] + redirect_to edit_page_revision_path(@page, @page.current_revision) else authorize Georgia::Page redirect_to [:search, model], alert: "This #{instance_name} has been deleted."