We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03c244d commit b353c34Copy full SHA for b353c34
app/controllers/pages_controller.rb
@@ -1,5 +1,6 @@
1
class PagesController < ApplicationController
2
def show
3
- render action: params[:page], layout: (params[:layout] || 'application')
+ show_pages_params = params.permit(:page, :layout)
4
+ render action: show_pages_params[:page], layout: (show_pages_params[:layout] || 'application')
5
end
-end
6
+end
0 commit comments