use _path in views, and scope to engine

This commit is contained in:
2022-12-21 00:09:44 +02:00
parent ca029d274c
commit 529fe6d3de
21 changed files with 70 additions and 106 deletions

View File

@ -1,6 +1,5 @@
module Merged
class MergedController < ApplicationController
# layout 'merged_layout'
class MergedController < ::ApplicationController
before_action :authenticate_member!
end
end

View File

@ -14,7 +14,7 @@ module Merged
@page.add_redirect
@page.name = params[:name]
@page.save
redirect_to page_path(@page) , notice: "Page renamed"
redirect_to page_url(@page) , notice: "Page renamed"
end
def create