fix no page

This commit is contained in:
Torsten 2023-01-18 23:53:53 +02:00
parent 22426c4bdf
commit 5ff7c4e81b

View File

@ -3,6 +3,7 @@ module Merged
def page def page
@page = Page.find_by_name(params[:id]) @page = Page.find_by_name(params[:id])
redirect_to "/" , alert: "No page #{params[:id]}" unless @page
end end
end end