diff --git a/app/controllers/merged/view_controller.rb b/app/controllers/merged/view_controller.rb index 5780d47..2fb9e4e 100644 --- a/app/controllers/merged/view_controller.rb +++ b/app/controllers/merged/view_controller.rb @@ -3,6 +3,7 @@ module Merged def page @page = Page.find_by_name(params[:id]) + redirect_to "/" , alert: "No page #{params[:id]}" unless @page end end