Skip to content

Commit

Permalink
Fixes georgia blog post creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu Gagné committed Dec 12, 2014
1 parent 2c7ef40 commit e96e8f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/georgia/pages_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand All @@ -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."
Expand Down

0 comments on commit e96e8f5

Please sign in to comment.