ecm_cms 0.0.6.pre → 0.0.7.pre
Sign up to get free protection for your applications and to get access to all the features.
@@ -5,6 +5,15 @@ class Ecm::Cms::PageController < ApplicationController
|
|
5
5
|
# add the page resolver
|
6
6
|
include Ecm::Cms::ControllerExtensions::PageResolver
|
7
7
|
|
8
|
+
# avoid error 500 on missing template
|
9
|
+
rescue_from ActionView::MissingTemplate do
|
10
|
+
respond_to do |format|
|
11
|
+
format.html { render(:file => "#{Rails.root}/public/404.html", :layout => false, :status => 404) }
|
12
|
+
format.xml { head :not_found }
|
13
|
+
format.any { head :not_found }
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
8
17
|
def respond
|
9
18
|
render :template => params[:page]
|
10
19
|
end
|
data/lib/ecm/cms/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ecm_cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 961915992
|
5
5
|
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
9
|
+
- 7
|
10
10
|
- pre
|
11
|
-
version: 0.0.
|
11
|
+
version: 0.0.7.pre
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Roberto Vasquez Angel
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2012-12-
|
19
|
+
date: 2012-12-11 00:00:00 Z
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
22
|
name: rails
|