tkh_content 0.0.3 → 0.0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
 
4
4
 
5
+ ## 0.0.3.1
6
+
7
+ * Debugged the special page show route. It has to come last in order not to conflict with other routes
8
+
9
+
5
10
  ## 0.0.3
6
11
 
7
12
  * The blog layout file is being copied to the host app during install or update
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
@@ -1,3 +1,3 @@
1
1
  module TkhContent
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.3.1"
3
3
  end
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: -2978963987227375249
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: -2978963987227375249
178
+ hash: -675212526871244421
179
179
  requirements: []
180
180
  rubyforge_project:
181
181
  rubygems_version: 1.8.23