Permalink
Browse files

Prevent double render error

  • Loading branch information...
1 parent 4ed6a5e commit daaabba025c044eb8f8e68be84936ffca1f42053 @cannikin cannikin committed Feb 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/pages_controller.rb
@@ -16,7 +16,7 @@ def index
# individual user-created pages
def show
unless @page = find_page_by_path
- render 'public/404.html', :status => :not_found
+ render 'public/404.html', :status => :not_found and return
end
render :layout => 'application'

0 comments on commit daaabba

Please sign in to comment.