tkh_content 0.0.3 → 0.0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG.md +5 -0
- data/README.md +6 -0
- data/config/routes.rb +9 -7
- data/lib/tkh_content/version.rb +1 -1
- metadata +3 -3
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -33,6 +33,12 @@ Import migration
|
|
33
33
|
Run the migration
|
34
34
|
|
35
35
|
$ rake db:migrate
|
36
|
+
|
37
|
+
Add these 3 lines to the bottom of your routes file, just before the final end statement
|
38
|
+
|
39
|
+
scope "(:locale)", locale: /#{I18n.available_locales.join("|")}/ do
|
40
|
+
resources :pages, only: :show, path: ''
|
41
|
+
end
|
36
42
|
|
37
43
|
And then of course restart your server!
|
38
44
|
|
data/config/routes.rb
CHANGED
@@ -1,11 +1,13 @@
|
|
1
1
|
Rails.application.routes.draw do
|
2
2
|
scope "(:locale)", locale: /#{I18n.available_locales.join("|")}/ do
|
3
3
|
resources :pages, except: :show
|
4
|
-
# this is a bit funky
|
5
|
-
# in order to show pages without the controller name
|
6
|
-
# this line should be at the end of the routes file
|
7
|
-
# nothing to do when in context of tkh_cms
|
8
|
-
# working on this.
|
9
|
-
resources :pages, only: :show, path: ''
|
10
4
|
end
|
11
|
-
end
|
5
|
+
end
|
6
|
+
|
7
|
+
|
8
|
+
# this is a bit funky
|
9
|
+
# These 3 lines must be copied by hand to the bottom of the routes file and un-commented
|
10
|
+
|
11
|
+
# scope "(:locale)", locale: /#{I18n.available_locales.join("|")}/ do
|
12
|
+
# resources :pages, only: :show, path: ''
|
13
|
+
# end
|
data/lib/tkh_content/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tkh_content
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.3
|
4
|
+
version: 0.0.3.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -166,7 +166,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
166
166
|
version: '0'
|
167
167
|
segments:
|
168
168
|
- 0
|
169
|
-
hash: -
|
169
|
+
hash: -675212526871244421
|
170
170
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
171
171
|
none: false
|
172
172
|
requirements:
|
@@ -175,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
175
175
|
version: '0'
|
176
176
|
segments:
|
177
177
|
- 0
|
178
|
-
hash: -
|
178
|
+
hash: -675212526871244421
|
179
179
|
requirements: []
|
180
180
|
rubyforge_project:
|
181
181
|
rubygems_version: 1.8.23
|