ecm_cms 1.0.3.pre → 1.0.4.pre
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +5 -0
- data/app/controllers/ecm/cms/page_controller.rb +9 -2
- data/lib/ecm/cms/version.rb +1 -1
- metadata +4 -4
data/README.rdoc
CHANGED
@@ -1,14 +1,20 @@
|
|
1
1
|
class Ecm::Cms::PageController < ApplicationController
|
2
2
|
# inject locale to params and vice versa
|
3
3
|
include RailsTools::I18nController
|
4
|
-
|
4
|
+
|
5
5
|
# add the page resolver
|
6
6
|
include Ecm::Cms::ControllerExtensions::PageResolver
|
7
|
+
include Ecm::Cms::ControllerExtensions::PartialResolver
|
7
8
|
|
8
9
|
# avoid error 500 on missing template
|
9
10
|
rescue_from ActionView::MissingTemplate do
|
10
11
|
respond_to do |format|
|
11
|
-
format.html {
|
12
|
+
format.html {
|
13
|
+
render(:file => "#{Rails.root}/public/404", :formats => [:html],
|
14
|
+
:layout => false,
|
15
|
+
:status => 404
|
16
|
+
)
|
17
|
+
}
|
12
18
|
format.xml { head :not_found }
|
13
19
|
format.any { head :not_found }
|
14
20
|
end
|
@@ -18,3 +24,4 @@ class Ecm::Cms::PageController < ApplicationController
|
|
18
24
|
render :template => params[:page]
|
19
25
|
end
|
20
26
|
end
|
27
|
+
|
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: 961915972
|
5
5
|
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
9
|
+
- 4
|
10
10
|
- pre
|
11
|
-
version: 1.0.
|
11
|
+
version: 1.0.4.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: 2013-
|
19
|
+
date: 2013-06-06 00:00:00 Z
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
22
|
name: rails
|