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/#{current_page}" %>
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/#{current_page}" %>
32
+ unless template_exists? <%= options[:subpage] ? "get_template" : "\"pages/\#\{current_page\}\"" %>
33
33
  redirect_to root_path
34
34
  end
35
35
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nickel-will_static_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Gallego