nickel-will_static_generator 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -6,7 +6,7 @@ class PagesController < ApplicationController
|
|
6
6
|
# caches_page :show
|
7
7
|
|
8
8
|
def show
|
9
|
-
render :template => <%= options[:subpage] ? "get_template" : "pages
|
9
|
+
render :template => <%= options[:subpage] ? "get_template" : "\"pages/\#\{current_page\}\"" %>
|
10
10
|
end
|
11
11
|
|
12
12
|
protected
|
@@ -29,7 +29,7 @@ class PagesController < ApplicationController
|
|
29
29
|
<%- end -%>
|
30
30
|
|
31
31
|
def ensure_valid
|
32
|
-
unless template_exists? <%= options[:subpage] ? "get_template" : "pages
|
32
|
+
unless template_exists? <%= options[:subpage] ? "get_template" : "\"pages/\#\{current_page\}\"" %>
|
33
33
|
redirect_to root_path
|
34
34
|
end
|
35
35
|
end
|