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 6cb0749 commit 4723e04Copy full SHA for 4723e04
app/controllers/pages_controller.rb
@@ -2,16 +2,6 @@ class PagesController < ApplicationController
2
append_view_path "pages"
3
layout :layout_by_path
4
5
- def layout_by_path
6
- if request.path == "/docs"
7
- "homepage"
8
- elsif request.path.starts_with? "/docs/apis/graphql"
9
- "graphql"
10
- else
11
- "application"
12
- end
13
14
-
15
def show
16
@page = Page.new(view_context, params[:path])
17
@@ -41,4 +31,13 @@ def is_landing_page?
41
31
end
42
32
helper_method :is_landing_page?
43
33
34
+ def layout_by_path
35
+ if request.path == "/docs"
36
+ "homepage"
37
+ elsif request.path.starts_with? "/docs/apis/graphql"
38
+ "graphql"
39
+ else
40
+ "application"
+ end
44
0 commit comments