fix no page
This commit is contained in:
parent
22426c4bdf
commit
5ff7c4e81b
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user