simple_pages 0.1.1 → 0.2.0
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/README.md +42 -16
- data/lib/simple_pages/engine.rb +5 -0
- data/lib/simple_pages/version.rb +1 -1
- data/lib/simple_pages.rb +2 -44
- data/spec/dummy/app/controllers/{simple_pages_controller.rb → custom_pages_controller.rb} +1 -3
- data/spec/dummy/app/views/custom_pages/contact.html.erb +1 -0
- data/spec/dummy/app/views/{simple_pages → custom_pages}/plus.html.erb +0 -0
- data/spec/dummy/app/views/pages/contact.html.erb +1 -0
- data/spec/dummy/app/views/pages/sao_paulo_ribeirao.html.erb +1 -0
- data/spec/dummy/app/views/pages/show.html.erb +2 -0
- data/spec/dummy/app/views/pages/testing.html.erb +1 -0
- data/spec/dummy/app/views/pages/testing_testing.html.erb +1 -0
- data/spec/dummy/config/locales/en.yml +1 -1
- data/spec/dummy/config/locales/pt.yml +5 -0
- data/spec/dummy/config/routes.rb +3 -3
- data/spec/dummy/{app/views/i18n_simple_pages/contact.html.erb → log/development.log} +0 -0
- data/spec/features/custom_simple_pages_spec.rb +15 -0
- data/spec/features/simple_pages_spec.rb +71 -0
- data/spec/spec_helper.rb +1 -0
- metadata +45 -34
- data/spec/controllers/i18n_simple_pages_controller_spec.rb +0 -52
- data/spec/controllers/simple_pages_controller_spec.rb +0 -43
- data/spec/controllers/simple_pages_controller_with_special_characters_spec.rb +0 -35
- data/spec/dummy/app/controllers/i18n_simple_pages_controller.rb +0 -3
- data/spec/dummy/app/views/i18n_simple_pages/not_found.html.erb +0 -0
- data/spec/dummy/app/views/i18n_simple_pages/pt/contato.html.erb +0 -0
- data/spec/dummy/app/views/simple_pages/not_found.html.erb +0 -0
- data/spec/dummy/app/views/simple_pages/sao_paulo_ribeirao.html.erb +0 -0
- data/spec/dummy/app/views/simple_pages/show.html.erb +0 -1
- data/spec/dummy/app/views/simple_pages/testing.html.erb +0 -0
- data/spec/dummy/app/views/simple_pages/testing_testing.html.erb +0 -0
- data/spec/dummy/log/test.log +0 -612
data/README.md
CHANGED
@@ -1,22 +1,30 @@
|
|
1
1
|
# Simple Pages
|
2
2
|
|
3
|
-
|
4
|
-
|
3
|
+
[](https://travis-ci.org/azisaka/simple_pages)
|
4
|
+
|
5
|
+
Every time I create a project that needs "static" pages, I have to
|
6
|
+
create a controller to handle the views. Sometimes it requires
|
7
|
+
translations, some processing, and it takes some time effort to do it.
|
8
|
+
|
9
|
+
Althought it's just a simple controller, you need to handle special
|
10
|
+
characters like "-" or missing templates with a 404.
|
11
|
+
|
12
|
+
Time gem was created make it simpler.
|
5
13
|
|
6
14
|
## Example
|
7
15
|
|
8
|
-
|
16
|
+
To have it working in a standard way, just install the gem:
|
9
17
|
|
10
|
-
|
11
|
-
|
12
|
-
|
18
|
+
gem 'simple_pages'
|
19
|
+
|
20
|
+
Then ``bundle install`` it.
|
13
21
|
|
14
|
-
|
22
|
+
After that, you can mount the engine as:
|
15
23
|
|
16
24
|
Dummy::Application.routes.draw do
|
17
25
|
...
|
18
|
-
|
19
|
-
|
26
|
+
|
27
|
+
mount SimplePages::Engine => "/"
|
20
28
|
end
|
21
29
|
|
22
30
|
Now create the pages folder into your views folder and put there the
|
@@ -31,21 +39,39 @@ default template**:
|
|
31
39
|
|
32
40
|
So you can access the views as:
|
33
41
|
|
34
|
-
http://localhost:3000/
|
42
|
+
http://localhost:3000/about-us
|
35
43
|
|
36
|
-
##
|
44
|
+
## 404
|
37
45
|
|
38
|
-
|
46
|
+
You can create a custom 404 action, just create a view named
|
47
|
+
not_found.html.erb
|
39
48
|
|
40
|
-
|
49
|
+
## Custom Controller and Actions
|
41
50
|
|
42
|
-
|
51
|
+
It's possible to use a custom controller, just create it
|
43
52
|
|
53
|
+
class CustomPagesController < SimplePages::PagesController
|
54
|
+
def add_your_action
|
55
|
+
# to do something
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
And change the routes.rb to
|
60
|
+
|
61
|
+
|
44
62
|
Dummy::Application.routes.draw do
|
45
63
|
...
|
46
|
-
|
64
|
+
|
65
|
+
match "*id" => "custom_pages#show"
|
47
66
|
end
|
48
|
-
|
67
|
+
|
68
|
+
Then you can access as
|
69
|
+
|
70
|
+
http://localhost:3000/add-your-action
|
71
|
+
|
72
|
+
You can create a view named add_your_action.html.erb or just let it
|
73
|
+
render the show.html.erb view.
|
74
|
+
|
49
75
|
## License
|
50
76
|
|
51
77
|
Copyright (c) 2013 [Bruno Azisaka Maciel], released under the MIT license
|
data/lib/simple_pages/version.rb
CHANGED
data/lib/simple_pages.rb
CHANGED
@@ -1,46 +1,4 @@
|
|
1
|
-
|
2
|
-
def self.included(base)
|
3
|
-
base.send :include, InstanceMethods
|
4
|
-
end
|
5
|
-
|
6
|
-
module InstanceMethods
|
7
|
-
def show
|
8
|
-
if page_action.present? && respond_to?(page_action)
|
9
|
-
executes_page_action
|
10
|
-
else
|
11
|
-
render_page_template
|
12
|
-
end
|
13
|
-
end
|
14
|
-
|
15
|
-
protected
|
16
|
-
def page_action
|
17
|
-
@page_action ||= page_permalink params[:id]
|
18
|
-
end
|
19
|
-
|
20
|
-
def executes_page_action
|
21
|
-
send page_action if page_action != "show"
|
22
|
-
render page_template_path
|
23
|
-
rescue ActionView::MissingTemplate
|
24
|
-
render 'show'
|
25
|
-
end
|
1
|
+
require "simple_pages/engine"
|
26
2
|
|
27
|
-
|
28
|
-
render page_template_path
|
29
|
-
rescue ActionView::MissingTemplate
|
30
|
-
render 'not_found', :status => 404
|
31
|
-
end
|
32
|
-
|
33
|
-
def page_template_path
|
34
|
-
[controller_name, page_locale, page_action].compact * "/"
|
35
|
-
end
|
36
|
-
|
37
|
-
def page_locale
|
38
|
-
return I18n.locale = params[:locale] if params[:locale]
|
39
|
-
return I18n.locale if I18n.locale != I18n.default_locale
|
40
|
-
end
|
41
|
-
|
42
|
-
def page_permalink(string)
|
43
|
-
URI.unescape(string || "show").parameterize.underscore
|
44
|
-
end
|
45
|
-
end
|
3
|
+
module SimplePages
|
46
4
|
end
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= t :contact_page %>
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= t :contact_page %>
|
@@ -0,0 +1 @@
|
|
1
|
+
This page contains São Paulo and Ribeirão
|
@@ -0,0 +1 @@
|
|
1
|
+
This is a testing page!
|
@@ -0,0 +1 @@
|
|
1
|
+
This is a double testing page.
|
data/spec/dummy/config/routes.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Dummy::Application.routes.draw do
|
2
|
-
|
3
|
-
match "
|
2
|
+
match "/custom_pages/*id" => "custom_pages#show"
|
3
|
+
match "/pt/*id" => "custom_pages#show"
|
4
4
|
|
5
|
-
|
5
|
+
mount SimplePages::Engine => "/"
|
6
6
|
end
|
File without changes
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
feature "Custom Simple Pages" do
|
4
|
+
it "when the template and action exist" do
|
5
|
+
visit "/custom_pages/plus"
|
6
|
+
|
7
|
+
page.should have_content "1"
|
8
|
+
end
|
9
|
+
|
10
|
+
it "when the action exists but the template doesn't" do
|
11
|
+
visit "/custom_pages/minus"
|
12
|
+
|
13
|
+
page.should have_content "-1"
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,71 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require "spec_helper"
|
4
|
+
|
5
|
+
feature "Default Simple Pages Controller" do
|
6
|
+
it "when the template doesn't exist" do
|
7
|
+
visit "/nothing"
|
8
|
+
|
9
|
+
page.should have_content "The page you were looking for doesn't exist."
|
10
|
+
page.status_code.should == 404
|
11
|
+
end
|
12
|
+
|
13
|
+
it "when the template exists" do
|
14
|
+
visit "/testing"
|
15
|
+
|
16
|
+
page.should have_content "This is a testing page!"
|
17
|
+
end
|
18
|
+
|
19
|
+
it "when the id is nil" do
|
20
|
+
visit ""
|
21
|
+
|
22
|
+
page.should have_content "This is the default page."
|
23
|
+
end
|
24
|
+
|
25
|
+
it "when the page is \"testing-testing\"" do
|
26
|
+
visit "/testing-testing"
|
27
|
+
|
28
|
+
page.should have_content "This is a double testing page."
|
29
|
+
end
|
30
|
+
|
31
|
+
it "when the page is \"são-paulo-ribeirão\"" do
|
32
|
+
visit "/s%C3%A3o-paulo-ribeir%C3%A3o"
|
33
|
+
|
34
|
+
page.should have_content "This page contains São Paulo and Ribeirão"
|
35
|
+
end
|
36
|
+
|
37
|
+
it "when the page is \"são-paulo_ribeirão\"" do
|
38
|
+
visit "/s%C3%A3o-paulo_ribeir%C3%A3o"
|
39
|
+
|
40
|
+
page.should have_content "This page contains São Paulo and Ribeirão"
|
41
|
+
end
|
42
|
+
|
43
|
+
it "when the page is \"são-paulo ribeirão\"" do
|
44
|
+
visit "/s%C3%A3o-paulo%20ribeir%C3%A3o"
|
45
|
+
|
46
|
+
page.should have_content "This page contains São Paulo and Ribeirão"
|
47
|
+
end
|
48
|
+
|
49
|
+
it "when the locale is not defined" do
|
50
|
+
visit "/contact"
|
51
|
+
|
52
|
+
page.should have_content "Contact Page"
|
53
|
+
end
|
54
|
+
|
55
|
+
it "when the locale param is defined" do
|
56
|
+
visit "/contato?locale=pt"
|
57
|
+
|
58
|
+
page.should have_content "Página de Contato"
|
59
|
+
end
|
60
|
+
|
61
|
+
it "when the locale param is defined in the path" do
|
62
|
+
visit "/pt/contato"
|
63
|
+
|
64
|
+
page.should have_content "Página de Contato"
|
65
|
+
end
|
66
|
+
|
67
|
+
it "when the locale param is not defined" do
|
68
|
+
visit "/contato"
|
69
|
+
page.should have_content "Página de Contato"
|
70
|
+
end
|
71
|
+
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_pages
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-05-
|
12
|
+
date: 2013-05-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -59,6 +59,22 @@ dependencies:
|
|
59
59
|
- - ! '>='
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: capybara
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
62
78
|
- !ruby/object:Gem::Dependency
|
63
79
|
name: rr
|
64
80
|
requirement: !ruby/object:Gem::Requirement
|
@@ -82,27 +98,22 @@ executables: []
|
|
82
98
|
extensions: []
|
83
99
|
extra_rdoc_files: []
|
84
100
|
files:
|
101
|
+
- lib/simple_pages/engine.rb
|
85
102
|
- lib/simple_pages/version.rb
|
86
103
|
- lib/simple_pages.rb
|
87
104
|
- Rakefile
|
88
105
|
- README.md
|
89
|
-
- spec/controllers/i18n_simple_pages_controller_spec.rb
|
90
|
-
- spec/controllers/simple_pages_controller_spec.rb
|
91
|
-
- spec/controllers/simple_pages_controller_with_special_characters_spec.rb
|
92
106
|
- spec/dummy/app/controllers/application_controller.rb
|
93
|
-
- spec/dummy/app/controllers/
|
94
|
-
- spec/dummy/app/controllers/simple_pages_controller.rb
|
107
|
+
- spec/dummy/app/controllers/custom_pages_controller.rb
|
95
108
|
- spec/dummy/app/helpers/application_helper.rb
|
96
|
-
- spec/dummy/app/views/
|
97
|
-
- spec/dummy/app/views/
|
98
|
-
- spec/dummy/app/views/i18n_simple_pages/pt/contato.html.erb
|
109
|
+
- spec/dummy/app/views/custom_pages/contact.html.erb
|
110
|
+
- spec/dummy/app/views/custom_pages/plus.html.erb
|
99
111
|
- spec/dummy/app/views/layouts/application.html.erb
|
100
|
-
- spec/dummy/app/views/
|
101
|
-
- spec/dummy/app/views/
|
102
|
-
- spec/dummy/app/views/
|
103
|
-
- spec/dummy/app/views/
|
104
|
-
- spec/dummy/app/views/
|
105
|
-
- spec/dummy/app/views/simple_pages/testing_testing.html.erb
|
112
|
+
- spec/dummy/app/views/pages/contact.html.erb
|
113
|
+
- spec/dummy/app/views/pages/sao_paulo_ribeirao.html.erb
|
114
|
+
- spec/dummy/app/views/pages/show.html.erb
|
115
|
+
- spec/dummy/app/views/pages/testing.html.erb
|
116
|
+
- spec/dummy/app/views/pages/testing_testing.html.erb
|
106
117
|
- spec/dummy/config/application.rb
|
107
118
|
- spec/dummy/config/boot.rb
|
108
119
|
- spec/dummy/config/environment.rb
|
@@ -111,15 +122,18 @@ files:
|
|
111
122
|
- spec/dummy/config/initializers/session_store.rb
|
112
123
|
- spec/dummy/config/initializers/wrap_parameters.rb
|
113
124
|
- spec/dummy/config/locales/en.yml
|
125
|
+
- spec/dummy/config/locales/pt.yml
|
114
126
|
- spec/dummy/config/routes.rb
|
115
127
|
- spec/dummy/config.ru
|
116
|
-
- spec/dummy/log/
|
128
|
+
- spec/dummy/log/development.log
|
117
129
|
- spec/dummy/public/404.html
|
118
130
|
- spec/dummy/public/422.html
|
119
131
|
- spec/dummy/public/500.html
|
120
132
|
- spec/dummy/public/favicon.ico
|
121
133
|
- spec/dummy/Rakefile
|
122
134
|
- spec/dummy/script/rails
|
135
|
+
- spec/features/custom_simple_pages_spec.rb
|
136
|
+
- spec/features/simple_pages_spec.rb
|
123
137
|
- spec/spec_helper.rb
|
124
138
|
homepage: https://github.com/azisaka/simple_pages
|
125
139
|
licenses: []
|
@@ -135,7 +149,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
135
149
|
version: '0'
|
136
150
|
segments:
|
137
151
|
- 0
|
138
|
-
hash:
|
152
|
+
hash: 1542179232036677384
|
139
153
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
140
154
|
none: false
|
141
155
|
requirements:
|
@@ -144,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
144
158
|
version: '0'
|
145
159
|
segments:
|
146
160
|
- 0
|
147
|
-
hash:
|
161
|
+
hash: 1542179232036677384
|
148
162
|
requirements: []
|
149
163
|
rubyforge_project:
|
150
164
|
rubygems_version: 1.8.23
|
@@ -152,23 +166,17 @@ signing_key:
|
|
152
166
|
specification_version: 3
|
153
167
|
summary: A dummy plugin did for easy static page maintenance.
|
154
168
|
test_files:
|
155
|
-
- spec/controllers/i18n_simple_pages_controller_spec.rb
|
156
|
-
- spec/controllers/simple_pages_controller_spec.rb
|
157
|
-
- spec/controllers/simple_pages_controller_with_special_characters_spec.rb
|
158
169
|
- spec/dummy/app/controllers/application_controller.rb
|
159
|
-
- spec/dummy/app/controllers/
|
160
|
-
- spec/dummy/app/controllers/simple_pages_controller.rb
|
170
|
+
- spec/dummy/app/controllers/custom_pages_controller.rb
|
161
171
|
- spec/dummy/app/helpers/application_helper.rb
|
162
|
-
- spec/dummy/app/views/
|
163
|
-
- spec/dummy/app/views/
|
164
|
-
- spec/dummy/app/views/i18n_simple_pages/pt/contato.html.erb
|
172
|
+
- spec/dummy/app/views/custom_pages/contact.html.erb
|
173
|
+
- spec/dummy/app/views/custom_pages/plus.html.erb
|
165
174
|
- spec/dummy/app/views/layouts/application.html.erb
|
166
|
-
- spec/dummy/app/views/
|
167
|
-
- spec/dummy/app/views/
|
168
|
-
- spec/dummy/app/views/
|
169
|
-
- spec/dummy/app/views/
|
170
|
-
- spec/dummy/app/views/
|
171
|
-
- spec/dummy/app/views/simple_pages/testing_testing.html.erb
|
175
|
+
- spec/dummy/app/views/pages/contact.html.erb
|
176
|
+
- spec/dummy/app/views/pages/sao_paulo_ribeirao.html.erb
|
177
|
+
- spec/dummy/app/views/pages/show.html.erb
|
178
|
+
- spec/dummy/app/views/pages/testing.html.erb
|
179
|
+
- spec/dummy/app/views/pages/testing_testing.html.erb
|
172
180
|
- spec/dummy/config/application.rb
|
173
181
|
- spec/dummy/config/boot.rb
|
174
182
|
- spec/dummy/config/environment.rb
|
@@ -177,13 +185,16 @@ test_files:
|
|
177
185
|
- spec/dummy/config/initializers/session_store.rb
|
178
186
|
- spec/dummy/config/initializers/wrap_parameters.rb
|
179
187
|
- spec/dummy/config/locales/en.yml
|
188
|
+
- spec/dummy/config/locales/pt.yml
|
180
189
|
- spec/dummy/config/routes.rb
|
181
190
|
- spec/dummy/config.ru
|
182
|
-
- spec/dummy/log/
|
191
|
+
- spec/dummy/log/development.log
|
183
192
|
- spec/dummy/public/404.html
|
184
193
|
- spec/dummy/public/422.html
|
185
194
|
- spec/dummy/public/500.html
|
186
195
|
- spec/dummy/public/favicon.ico
|
187
196
|
- spec/dummy/Rakefile
|
188
197
|
- spec/dummy/script/rails
|
198
|
+
- spec/features/custom_simple_pages_spec.rb
|
199
|
+
- spec/features/simple_pages_spec.rb
|
189
200
|
- spec/spec_helper.rb
|
@@ -1,52 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
require 'spec_helper'
|
4
|
-
|
5
|
-
describe I18nSimplePagesController do
|
6
|
-
render_views
|
7
|
-
|
8
|
-
describe "template rendering" do
|
9
|
-
describe "contact page" do
|
10
|
-
before { get :show, :id => "contact" }
|
11
|
-
|
12
|
-
it { should render_template "contact" }
|
13
|
-
end
|
14
|
-
|
15
|
-
describe "página de contato" do
|
16
|
-
context "when the locale param is defined" do
|
17
|
-
before { get :show, :id => "contato", :locale => "pt" }
|
18
|
-
|
19
|
-
it { should render_template "i18n_simple_pages/pt/contato" }
|
20
|
-
|
21
|
-
it "should define the locale" do
|
22
|
-
I18n.locale.should == :pt
|
23
|
-
end
|
24
|
-
|
25
|
-
after { I18n.locale = I18n.default_locale }
|
26
|
-
end
|
27
|
-
|
28
|
-
context "when the locale param is not defined" do
|
29
|
-
before { get :show, :id => "contato" }
|
30
|
-
|
31
|
-
it { should render_template "not_found" }
|
32
|
-
end
|
33
|
-
|
34
|
-
context "when the locale is defined" do
|
35
|
-
before do
|
36
|
-
I18n.locale = "pt"
|
37
|
-
get :show, :id => "contato"
|
38
|
-
end
|
39
|
-
|
40
|
-
it { should render_template "i18n_simple_pages/pt/contato" }
|
41
|
-
|
42
|
-
after { I18n.locale = I18n.default_locale }
|
43
|
-
end
|
44
|
-
|
45
|
-
context "when the locale param is not defined" do
|
46
|
-
before { get :show, :id => "contato" }
|
47
|
-
|
48
|
-
it { should render_template "not_found" }
|
49
|
-
end
|
50
|
-
end
|
51
|
-
end
|
52
|
-
end
|
@@ -1,43 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
require 'spec_helper'
|
4
|
-
|
5
|
-
describe SimplePagesController do
|
6
|
-
render_views
|
7
|
-
|
8
|
-
context "when the template doesn't exist" do
|
9
|
-
before { get :show, :id => 'nothing' }
|
10
|
-
|
11
|
-
it { should render_template 'not_found' }
|
12
|
-
it { response.should be_not_found }
|
13
|
-
end
|
14
|
-
|
15
|
-
context "when the template exists" do
|
16
|
-
before { get :show, :id => 'testing' }
|
17
|
-
|
18
|
-
it { should render_template 'testing' }
|
19
|
-
it { response.should be_success }
|
20
|
-
end
|
21
|
-
|
22
|
-
context "when the template and action exist" do
|
23
|
-
before { get :show, :id => 'plus' }
|
24
|
-
|
25
|
-
it { should render_template 'plus' }
|
26
|
-
it { response.should be_success }
|
27
|
-
it { response.body.should =~ /1/ }
|
28
|
-
end
|
29
|
-
|
30
|
-
context "when the action exists but not the template" do
|
31
|
-
before { get :show, :id => 'minus' }
|
32
|
-
|
33
|
-
it { should render_template 'show' }
|
34
|
-
it { response.should be_success }
|
35
|
-
it { response.body.should =~ /\-1/ }
|
36
|
-
end
|
37
|
-
|
38
|
-
context "when the id is nil" do
|
39
|
-
before { get :show, id: nil }
|
40
|
-
it { response.should be_success }
|
41
|
-
it { should render_template 'show' }
|
42
|
-
end
|
43
|
-
end
|
@@ -1,35 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
require "spec_helper"
|
4
|
-
|
5
|
-
describe SimplePagesController, "using special characters like" do
|
6
|
-
context "\"testing-testing\"" do
|
7
|
-
before { get :show, :id => 'testing-testing' }
|
8
|
-
|
9
|
-
it { should render_template 'testing_testing' }
|
10
|
-
end
|
11
|
-
|
12
|
-
context "\"são-paulo-ribeirão\"" do
|
13
|
-
before { get :show, :id => 'são-paulo-ribeirão' }
|
14
|
-
|
15
|
-
it { should render_template 'sao_paulo_ribeirao' }
|
16
|
-
end
|
17
|
-
|
18
|
-
context "\"testing-testing\"" do
|
19
|
-
before { get :show, :id => 'testing-testing' }
|
20
|
-
|
21
|
-
it { should render_template 'testing_testing' }
|
22
|
-
end
|
23
|
-
|
24
|
-
context "\"são-paulo_ribeirão\"" do
|
25
|
-
before { get :show, :id => 'são-paulo_ribeirão' }
|
26
|
-
|
27
|
-
it { should render_template 'sao_paulo_ribeirao' }
|
28
|
-
end
|
29
|
-
|
30
|
-
context "\"são-paulo ribeirão\"" do
|
31
|
-
before { get :show, :id => 'são-paulo%20ribeirão' }
|
32
|
-
|
33
|
-
it { should render_template 'sao_paulo_ribeirao' }
|
34
|
-
end
|
35
|
-
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1 +0,0 @@
|
|
1
|
-
<%= @total %>
|
File without changes
|
File without changes
|
data/spec/dummy/log/test.log
DELETED
@@ -1,612 +0,0 @@
|
|
1
|
-
Processing by I18nSimplePagesController#show as HTML
|
2
|
-
Parameters: {"id"=>"contact"}
|
3
|
-
Rendered i18n_simple_pages/contact.html.erb within layouts/application (1.6ms)
|
4
|
-
Completed 200 OK in 120ms (Views: 10.1ms)
|
5
|
-
Processing by I18nSimplePagesController#show as HTML
|
6
|
-
Parameters: {"locale"=>"pt", "id"=>"contato"}
|
7
|
-
Completed 200 OK in 3ms (Views: 2.6ms)
|
8
|
-
Processing by I18nSimplePagesController#show as HTML
|
9
|
-
Parameters: {"locale"=>"pt", "id"=>"contato"}
|
10
|
-
Completed 200 OK in 1ms (Views: 0.9ms)
|
11
|
-
Processing by I18nSimplePagesController#show as HTML
|
12
|
-
Parameters: {"id"=>"contato"}
|
13
|
-
Completed 404 Not Found in 6ms (Views: 1.7ms)
|
14
|
-
Processing by I18nSimplePagesController#show as HTML
|
15
|
-
Parameters: {"id"=>"contato"}
|
16
|
-
Completed 200 OK in 2ms (Views: 1.1ms)
|
17
|
-
Processing by I18nSimplePagesController#show as HTML
|
18
|
-
Parameters: {"id"=>"contato"}
|
19
|
-
Completed 404 Not Found in 2ms (Views: 1.2ms)
|
20
|
-
Processing by SimplePagesController#show as HTML
|
21
|
-
Parameters: {"id"=>"nothing"}
|
22
|
-
Completed 404 Not Found in 3ms (Views: 1.5ms)
|
23
|
-
Processing by SimplePagesController#show as HTML
|
24
|
-
Parameters: {"id"=>"nothing"}
|
25
|
-
Completed 404 Not Found in 2ms (Views: 0.9ms)
|
26
|
-
Processing by SimplePagesController#show as HTML
|
27
|
-
Parameters: {"id"=>"testing"}
|
28
|
-
Completed 200 OK in 2ms (Views: 1.9ms)
|
29
|
-
Processing by SimplePagesController#show as HTML
|
30
|
-
Parameters: {"id"=>"testing"}
|
31
|
-
Completed 200 OK in 2ms (Views: 1.5ms)
|
32
|
-
Processing by SimplePagesController#show as HTML
|
33
|
-
Parameters: {"id"=>"plus"}
|
34
|
-
Completed 200 OK in 2ms (Views: 2.1ms)
|
35
|
-
Processing by SimplePagesController#show as HTML
|
36
|
-
Parameters: {"id"=>"plus"}
|
37
|
-
Completed 200 OK in 1ms (Views: 1.0ms)
|
38
|
-
Processing by SimplePagesController#show as HTML
|
39
|
-
Parameters: {"id"=>"plus"}
|
40
|
-
Completed 200 OK in 1ms (Views: 1.1ms)
|
41
|
-
Processing by SimplePagesController#show as HTML
|
42
|
-
Parameters: {"id"=>"minus"}
|
43
|
-
Completed 200 OK in 3ms (Views: 1.8ms)
|
44
|
-
Processing by SimplePagesController#show as HTML
|
45
|
-
Parameters: {"id"=>"minus"}
|
46
|
-
Completed 200 OK in 2ms (Views: 0.9ms)
|
47
|
-
Processing by SimplePagesController#show as HTML
|
48
|
-
Parameters: {"id"=>"minus"}
|
49
|
-
Completed 200 OK in 2ms (Views: 1.4ms)
|
50
|
-
Processing by SimplePagesController#show as HTML
|
51
|
-
Parameters: {"id"=>"testing-testing"}
|
52
|
-
Completed 200 OK in 1ms (Views: 1.1ms)
|
53
|
-
Processing by SimplePagesController#show as HTML
|
54
|
-
Parameters: {"id"=>"são-paulo-ribeirão"}
|
55
|
-
Completed 200 OK in 2ms (Views: 1.7ms)
|
56
|
-
Processing by SimplePagesController#show as HTML
|
57
|
-
Parameters: {"id"=>"testing-testing"}
|
58
|
-
Completed 200 OK in 1ms (Views: 0.8ms)
|
59
|
-
Processing by SimplePagesController#show as HTML
|
60
|
-
Parameters: {"id"=>"são-paulo_ribeirão"}
|
61
|
-
Completed 200 OK in 1ms (Views: 0.8ms)
|
62
|
-
Processing by SimplePagesController#show as HTML
|
63
|
-
Parameters: {"id"=>"são-paulo%20ribeirão"}
|
64
|
-
Completed 200 OK in 1ms (Views: 0.8ms)
|
65
|
-
Processing by I18nSimplePagesController#show as HTML
|
66
|
-
Parameters: {"id"=>"contact"}
|
67
|
-
Rendered i18n_simple_pages/contact.html.erb within layouts/application (2.1ms)
|
68
|
-
Completed 200 OK in 85ms (Views: 11.7ms)
|
69
|
-
Processing by I18nSimplePagesController#show as HTML
|
70
|
-
Parameters: {"locale"=>"pt", "id"=>"contato"}
|
71
|
-
Completed 200 OK in 4ms (Views: 3.2ms)
|
72
|
-
Processing by I18nSimplePagesController#show as HTML
|
73
|
-
Parameters: {"locale"=>"pt", "id"=>"contato"}
|
74
|
-
Completed 200 OK in 1ms (Views: 1.0ms)
|
75
|
-
Processing by I18nSimplePagesController#show as HTML
|
76
|
-
Parameters: {"id"=>"contato"}
|
77
|
-
Completed 404 Not Found in 6ms (Views: 1.7ms)
|
78
|
-
Processing by I18nSimplePagesController#show as HTML
|
79
|
-
Parameters: {"id"=>"contato"}
|
80
|
-
Completed 200 OK in 2ms (Views: 1.0ms)
|
81
|
-
Processing by I18nSimplePagesController#show as HTML
|
82
|
-
Parameters: {"id"=>"contato"}
|
83
|
-
Completed 404 Not Found in 2ms (Views: 0.8ms)
|
84
|
-
Processing by SimplePagesController#show as HTML
|
85
|
-
Parameters: {"id"=>"nothing"}
|
86
|
-
Completed 404 Not Found in 3ms (Views: 1.7ms)
|
87
|
-
Processing by SimplePagesController#show as HTML
|
88
|
-
Parameters: {"id"=>"nothing"}
|
89
|
-
Completed 404 Not Found in 2ms (Views: 0.9ms)
|
90
|
-
Processing by SimplePagesController#show as HTML
|
91
|
-
Parameters: {"id"=>"testing"}
|
92
|
-
Completed 200 OK in 2ms (Views: 1.9ms)
|
93
|
-
Processing by SimplePagesController#show as HTML
|
94
|
-
Parameters: {"id"=>"testing"}
|
95
|
-
Completed 200 OK in 2ms (Views: 1.5ms)
|
96
|
-
Processing by SimplePagesController#show as HTML
|
97
|
-
Parameters: {"id"=>"plus"}
|
98
|
-
Completed 200 OK in 2ms (Views: 1.8ms)
|
99
|
-
Processing by SimplePagesController#show as HTML
|
100
|
-
Parameters: {"id"=>"plus"}
|
101
|
-
Completed 200 OK in 1ms (Views: 0.9ms)
|
102
|
-
Processing by SimplePagesController#show as HTML
|
103
|
-
Parameters: {"id"=>"plus"}
|
104
|
-
Completed 200 OK in 1ms (Views: 0.9ms)
|
105
|
-
Processing by SimplePagesController#show as HTML
|
106
|
-
Parameters: {"id"=>"minus"}
|
107
|
-
Completed 200 OK in 3ms (Views: 1.4ms)
|
108
|
-
Processing by SimplePagesController#show as HTML
|
109
|
-
Parameters: {"id"=>"minus"}
|
110
|
-
Completed 200 OK in 1ms (Views: 0.8ms)
|
111
|
-
Processing by SimplePagesController#show as HTML
|
112
|
-
Parameters: {"id"=>"minus"}
|
113
|
-
Completed 200 OK in 1ms (Views: 0.8ms)
|
114
|
-
Processing by SimplePagesController#show as HTML
|
115
|
-
Parameters: {"id"=>"testing-testing"}
|
116
|
-
Completed 200 OK in 1ms (Views: 1.0ms)
|
117
|
-
Processing by SimplePagesController#show as HTML
|
118
|
-
Parameters: {"id"=>"são-paulo-ribeirão"}
|
119
|
-
Completed 200 OK in 1ms (Views: 1.0ms)
|
120
|
-
Processing by SimplePagesController#show as HTML
|
121
|
-
Parameters: {"id"=>"testing-testing"}
|
122
|
-
Completed 200 OK in 1ms (Views: 0.6ms)
|
123
|
-
Processing by SimplePagesController#show as HTML
|
124
|
-
Parameters: {"id"=>"são-paulo_ribeirão"}
|
125
|
-
Completed 200 OK in 1ms (Views: 0.7ms)
|
126
|
-
Processing by SimplePagesController#show as HTML
|
127
|
-
Parameters: {"id"=>"são-paulo%20ribeirão"}
|
128
|
-
Completed 200 OK in 1ms (Views: 0.8ms)
|
129
|
-
Processing by I18nSimplePagesController#show as HTML
|
130
|
-
Parameters: {"id"=>"contact"}
|
131
|
-
Rendered i18n_simple_pages/contact.html.erb within layouts/application (1.7ms)
|
132
|
-
Completed 200 OK in 104ms (Views: 10.2ms)
|
133
|
-
Processing by I18nSimplePagesController#show as HTML
|
134
|
-
Parameters: {"locale"=>"pt", "id"=>"contato"}
|
135
|
-
Completed 200 OK in 3ms (Views: 2.5ms)
|
136
|
-
Processing by I18nSimplePagesController#show as HTML
|
137
|
-
Parameters: {"locale"=>"pt", "id"=>"contato"}
|
138
|
-
Completed 200 OK in 1ms (Views: 0.9ms)
|
139
|
-
Processing by I18nSimplePagesController#show as HTML
|
140
|
-
Parameters: {"id"=>"contato"}
|
141
|
-
Completed 404 Not Found in 6ms (Views: 1.6ms)
|
142
|
-
Processing by I18nSimplePagesController#show as HTML
|
143
|
-
Parameters: {"id"=>"contato"}
|
144
|
-
Completed 200 OK in 1ms (Views: 0.9ms)
|
145
|
-
Processing by I18nSimplePagesController#show as HTML
|
146
|
-
Parameters: {"id"=>"contato"}
|
147
|
-
Completed 404 Not Found in 1ms (Views: 0.8ms)
|
148
|
-
Processing by SimplePagesController#show as HTML
|
149
|
-
Parameters: {"id"=>"nothing"}
|
150
|
-
Completed 404 Not Found in 3ms (Views: 1.7ms)
|
151
|
-
Processing by SimplePagesController#show as HTML
|
152
|
-
Parameters: {"id"=>"nothing"}
|
153
|
-
Completed 404 Not Found in 1ms (Views: 0.8ms)
|
154
|
-
Processing by SimplePagesController#show as HTML
|
155
|
-
Parameters: {"id"=>"testing"}
|
156
|
-
Completed 200 OK in 2ms (Views: 1.8ms)
|
157
|
-
Processing by SimplePagesController#show as HTML
|
158
|
-
Parameters: {"id"=>"testing"}
|
159
|
-
Completed 200 OK in 1ms (Views: 0.9ms)
|
160
|
-
Processing by SimplePagesController#show as HTML
|
161
|
-
Parameters: {"id"=>"plus"}
|
162
|
-
Completed 200 OK in 2ms (Views: 2.1ms)
|
163
|
-
Processing by SimplePagesController#show as HTML
|
164
|
-
Parameters: {"id"=>"plus"}
|
165
|
-
Completed 200 OK in 1ms (Views: 1.0ms)
|
166
|
-
Processing by SimplePagesController#show as HTML
|
167
|
-
Parameters: {"id"=>"plus"}
|
168
|
-
Completed 200 OK in 1ms (Views: 0.8ms)
|
169
|
-
Processing by SimplePagesController#show as HTML
|
170
|
-
Parameters: {"id"=>"minus"}
|
171
|
-
Completed 200 OK in 3ms (Views: 1.9ms)
|
172
|
-
Processing by SimplePagesController#show as HTML
|
173
|
-
Parameters: {"id"=>"minus"}
|
174
|
-
Completed 200 OK in 1ms (Views: 0.8ms)
|
175
|
-
Processing by SimplePagesController#show as HTML
|
176
|
-
Parameters: {"id"=>"minus"}
|
177
|
-
Completed 200 OK in 1ms (Views: 0.8ms)
|
178
|
-
Processing by SimplePagesController#show as HTML
|
179
|
-
Parameters: {"id"=>"testing-testing"}
|
180
|
-
Completed 200 OK in 1ms (Views: 1.0ms)
|
181
|
-
Processing by SimplePagesController#show as HTML
|
182
|
-
Parameters: {"id"=>"são-paulo-ribeirão"}
|
183
|
-
Completed 200 OK in 1ms (Views: 1.1ms)
|
184
|
-
Processing by SimplePagesController#show as HTML
|
185
|
-
Parameters: {"id"=>"testing-testing"}
|
186
|
-
Completed 200 OK in 1ms (Views: 0.8ms)
|
187
|
-
Processing by SimplePagesController#show as HTML
|
188
|
-
Parameters: {"id"=>"são-paulo_ribeirão"}
|
189
|
-
Completed 200 OK in 1ms (Views: 0.7ms)
|
190
|
-
Processing by SimplePagesController#show as HTML
|
191
|
-
Parameters: {"id"=>"são-paulo%20ribeirão"}
|
192
|
-
Completed 200 OK in 1ms (Views: 0.6ms)
|
193
|
-
Processing by I18nSimplePagesController#show as HTML
|
194
|
-
Parameters: {"id"=>"contact"}
|
195
|
-
Rendered i18n_simple_pages/contact.html.erb within layouts/application (1.9ms)
|
196
|
-
Completed 200 OK in 80ms (Views: 10.9ms)
|
197
|
-
Processing by I18nSimplePagesController#show as HTML
|
198
|
-
Parameters: {"locale"=>"pt", "id"=>"contato"}
|
199
|
-
Completed 200 OK in 3ms (Views: 2.3ms)
|
200
|
-
Processing by I18nSimplePagesController#show as HTML
|
201
|
-
Parameters: {"locale"=>"pt", "id"=>"contato"}
|
202
|
-
Completed 200 OK in 1ms (Views: 0.9ms)
|
203
|
-
Processing by I18nSimplePagesController#show as HTML
|
204
|
-
Parameters: {"id"=>"contato"}
|
205
|
-
Completed 404 Not Found in 6ms (Views: 1.6ms)
|
206
|
-
Processing by I18nSimplePagesController#show as HTML
|
207
|
-
Parameters: {"id"=>"contato"}
|
208
|
-
Completed 200 OK in 1ms (Views: 0.9ms)
|
209
|
-
Processing by I18nSimplePagesController#show as HTML
|
210
|
-
Parameters: {"id"=>"contato"}
|
211
|
-
Completed 404 Not Found in 1ms (Views: 0.8ms)
|
212
|
-
Processing by SimplePagesController#show as HTML
|
213
|
-
Parameters: {"id"=>"nothing"}
|
214
|
-
Completed 404 Not Found in 3ms (Views: 1.5ms)
|
215
|
-
Processing by SimplePagesController#show as HTML
|
216
|
-
Parameters: {"id"=>"nothing"}
|
217
|
-
Completed 404 Not Found in 1ms (Views: 0.8ms)
|
218
|
-
Processing by SimplePagesController#show as HTML
|
219
|
-
Parameters: {"id"=>"testing"}
|
220
|
-
Completed 200 OK in 2ms (Views: 1.7ms)
|
221
|
-
Processing by SimplePagesController#show as HTML
|
222
|
-
Parameters: {"id"=>"testing"}
|
223
|
-
Completed 200 OK in 1ms (Views: 1.0ms)
|
224
|
-
Processing by SimplePagesController#show as HTML
|
225
|
-
Parameters: {"id"=>"plus"}
|
226
|
-
Completed 200 OK in 2ms (Views: 1.6ms)
|
227
|
-
Processing by SimplePagesController#show as HTML
|
228
|
-
Parameters: {"id"=>"plus"}
|
229
|
-
Completed 200 OK in 1ms (Views: 0.9ms)
|
230
|
-
Processing by SimplePagesController#show as HTML
|
231
|
-
Parameters: {"id"=>"plus"}
|
232
|
-
Completed 200 OK in 1ms (Views: 0.9ms)
|
233
|
-
Processing by SimplePagesController#show as HTML
|
234
|
-
Parameters: {"id"=>"minus"}
|
235
|
-
Completed 200 OK in 3ms (Views: 1.5ms)
|
236
|
-
Processing by SimplePagesController#show as HTML
|
237
|
-
Parameters: {"id"=>"minus"}
|
238
|
-
Completed 200 OK in 2ms (Views: 1.0ms)
|
239
|
-
Processing by SimplePagesController#show as HTML
|
240
|
-
Parameters: {"id"=>"minus"}
|
241
|
-
Completed 200 OK in 2ms (Views: 0.9ms)
|
242
|
-
Processing by SimplePagesController#show as HTML
|
243
|
-
Parameters: {"id"=>nil}
|
244
|
-
Completed 500 Internal Server Error in 0ms
|
245
|
-
Processing by SimplePagesController#show as HTML
|
246
|
-
Parameters: {"id"=>nil}
|
247
|
-
Completed 500 Internal Server Error in 0ms
|
248
|
-
Processing by SimplePagesController#show as HTML
|
249
|
-
Parameters: {"id"=>"testing-testing"}
|
250
|
-
Completed 200 OK in 1ms (Views: 1.0ms)
|
251
|
-
Processing by SimplePagesController#show as HTML
|
252
|
-
Parameters: {"id"=>"são-paulo-ribeirão"}
|
253
|
-
Completed 200 OK in 1ms (Views: 1.0ms)
|
254
|
-
Processing by SimplePagesController#show as HTML
|
255
|
-
Parameters: {"id"=>"testing-testing"}
|
256
|
-
Completed 200 OK in 2ms (Views: 1.1ms)
|
257
|
-
Processing by SimplePagesController#show as HTML
|
258
|
-
Parameters: {"id"=>"são-paulo_ribeirão"}
|
259
|
-
Completed 200 OK in 2ms (Views: 1.1ms)
|
260
|
-
Processing by SimplePagesController#show as HTML
|
261
|
-
Parameters: {"id"=>"são-paulo%20ribeirão"}
|
262
|
-
Completed 200 OK in 1ms (Views: 0.7ms)
|
263
|
-
Processing by I18nSimplePagesController#show as HTML
|
264
|
-
Parameters: {"id"=>"contact"}
|
265
|
-
Rendered i18n_simple_pages/contact.html.erb within layouts/application (1.9ms)
|
266
|
-
Completed 200 OK in 83ms (Views: 11.0ms)
|
267
|
-
Processing by I18nSimplePagesController#show as HTML
|
268
|
-
Parameters: {"locale"=>"pt", "id"=>"contato"}
|
269
|
-
Completed 200 OK in 3ms (Views: 2.4ms)
|
270
|
-
Processing by I18nSimplePagesController#show as HTML
|
271
|
-
Parameters: {"locale"=>"pt", "id"=>"contato"}
|
272
|
-
Completed 200 OK in 1ms (Views: 0.9ms)
|
273
|
-
Processing by I18nSimplePagesController#show as HTML
|
274
|
-
Parameters: {"id"=>"contato"}
|
275
|
-
Completed 404 Not Found in 6ms (Views: 1.6ms)
|
276
|
-
Processing by I18nSimplePagesController#show as HTML
|
277
|
-
Parameters: {"id"=>"contato"}
|
278
|
-
Completed 200 OK in 1ms (Views: 0.9ms)
|
279
|
-
Processing by I18nSimplePagesController#show as HTML
|
280
|
-
Parameters: {"id"=>"contato"}
|
281
|
-
Completed 404 Not Found in 1ms (Views: 0.8ms)
|
282
|
-
Processing by SimplePagesController#show as HTML
|
283
|
-
Parameters: {"id"=>"nothing"}
|
284
|
-
Completed 404 Not Found in 3ms (Views: 1.7ms)
|
285
|
-
Processing by SimplePagesController#show as HTML
|
286
|
-
Parameters: {"id"=>"nothing"}
|
287
|
-
Completed 404 Not Found in 1ms (Views: 0.8ms)
|
288
|
-
Processing by SimplePagesController#show as HTML
|
289
|
-
Parameters: {"id"=>"testing"}
|
290
|
-
Completed 200 OK in 2ms (Views: 1.6ms)
|
291
|
-
Processing by SimplePagesController#show as HTML
|
292
|
-
Parameters: {"id"=>"testing"}
|
293
|
-
Completed 200 OK in 1ms (Views: 1.0ms)
|
294
|
-
Processing by SimplePagesController#show as HTML
|
295
|
-
Parameters: {"id"=>"plus"}
|
296
|
-
Completed 200 OK in 2ms (Views: 1.6ms)
|
297
|
-
Processing by SimplePagesController#show as HTML
|
298
|
-
Parameters: {"id"=>"plus"}
|
299
|
-
Completed 200 OK in 1ms (Views: 0.9ms)
|
300
|
-
Processing by SimplePagesController#show as HTML
|
301
|
-
Parameters: {"id"=>"plus"}
|
302
|
-
Completed 200 OK in 1ms (Views: 0.9ms)
|
303
|
-
Processing by SimplePagesController#show as HTML
|
304
|
-
Parameters: {"id"=>"minus"}
|
305
|
-
Completed 200 OK in 3ms (Views: 2.0ms)
|
306
|
-
Processing by SimplePagesController#show as HTML
|
307
|
-
Parameters: {"id"=>"minus"}
|
308
|
-
Completed 200 OK in 2ms (Views: 0.9ms)
|
309
|
-
Processing by SimplePagesController#show as HTML
|
310
|
-
Parameters: {"id"=>"minus"}
|
311
|
-
Completed 200 OK in 1ms (Views: 0.8ms)
|
312
|
-
Processing by SimplePagesController#show as HTML
|
313
|
-
Parameters: {"id"=>nil}
|
314
|
-
Completed 404 Not Found in 2ms (Views: 0.8ms)
|
315
|
-
Processing by SimplePagesController#show as HTML
|
316
|
-
Parameters: {"id"=>nil}
|
317
|
-
Completed 404 Not Found in 1ms (Views: 0.8ms)
|
318
|
-
Processing by SimplePagesController#show as HTML
|
319
|
-
Parameters: {"id"=>"testing-testing"}
|
320
|
-
Completed 200 OK in 1ms (Views: 1.0ms)
|
321
|
-
Processing by SimplePagesController#show as HTML
|
322
|
-
Parameters: {"id"=>"são-paulo-ribeirão"}
|
323
|
-
Completed 200 OK in 1ms (Views: 1.0ms)
|
324
|
-
Processing by SimplePagesController#show as HTML
|
325
|
-
Parameters: {"id"=>"testing-testing"}
|
326
|
-
Completed 200 OK in 1ms (Views: 0.7ms)
|
327
|
-
Processing by SimplePagesController#show as HTML
|
328
|
-
Parameters: {"id"=>"são-paulo_ribeirão"}
|
329
|
-
Completed 200 OK in 1ms (Views: 0.8ms)
|
330
|
-
Processing by SimplePagesController#show as HTML
|
331
|
-
Parameters: {"id"=>"são-paulo%20ribeirão"}
|
332
|
-
Completed 200 OK in 1ms (Views: 0.9ms)
|
333
|
-
Processing by I18nSimplePagesController#show as HTML
|
334
|
-
Parameters: {"id"=>"contact"}
|
335
|
-
Rendered i18n_simple_pages/contact.html.erb within layouts/application (2.9ms)
|
336
|
-
Completed 200 OK in 82ms (Views: 13.8ms)
|
337
|
-
Processing by I18nSimplePagesController#show as HTML
|
338
|
-
Parameters: {"locale"=>"pt", "id"=>"contato"}
|
339
|
-
Completed 200 OK in 3ms (Views: 2.5ms)
|
340
|
-
Processing by I18nSimplePagesController#show as HTML
|
341
|
-
Parameters: {"locale"=>"pt", "id"=>"contato"}
|
342
|
-
Completed 200 OK in 1ms (Views: 1.0ms)
|
343
|
-
Processing by I18nSimplePagesController#show as HTML
|
344
|
-
Parameters: {"id"=>"contato"}
|
345
|
-
Completed 404 Not Found in 6ms (Views: 1.6ms)
|
346
|
-
Processing by I18nSimplePagesController#show as HTML
|
347
|
-
Parameters: {"id"=>"contato"}
|
348
|
-
Completed 200 OK in 2ms (Views: 1.0ms)
|
349
|
-
Processing by I18nSimplePagesController#show as HTML
|
350
|
-
Parameters: {"id"=>"contato"}
|
351
|
-
Completed 404 Not Found in 2ms (Views: 1.3ms)
|
352
|
-
Processing by SimplePagesController#show as HTML
|
353
|
-
Parameters: {"id"=>"nothing"}
|
354
|
-
Completed 404 Not Found in 3ms (Views: 1.6ms)
|
355
|
-
Processing by SimplePagesController#show as HTML
|
356
|
-
Parameters: {"id"=>"nothing"}
|
357
|
-
Completed 404 Not Found in 2ms (Views: 0.9ms)
|
358
|
-
Processing by SimplePagesController#show as HTML
|
359
|
-
Parameters: {"id"=>"testing"}
|
360
|
-
Completed 200 OK in 2ms (Views: 1.7ms)
|
361
|
-
Processing by SimplePagesController#show as HTML
|
362
|
-
Parameters: {"id"=>"testing"}
|
363
|
-
Completed 200 OK in 2ms (Views: 1.2ms)
|
364
|
-
Processing by SimplePagesController#show as HTML
|
365
|
-
Parameters: {"id"=>"plus"}
|
366
|
-
Completed 200 OK in 2ms (Views: 1.8ms)
|
367
|
-
Processing by SimplePagesController#show as HTML
|
368
|
-
Parameters: {"id"=>"plus"}
|
369
|
-
Completed 200 OK in 1ms (Views: 0.9ms)
|
370
|
-
Processing by SimplePagesController#show as HTML
|
371
|
-
Parameters: {"id"=>"plus"}
|
372
|
-
Completed 200 OK in 1ms (Views: 0.9ms)
|
373
|
-
Processing by SimplePagesController#show as HTML
|
374
|
-
Parameters: {"id"=>"minus"}
|
375
|
-
Completed 200 OK in 3ms (Views: 1.4ms)
|
376
|
-
Processing by SimplePagesController#show as HTML
|
377
|
-
Parameters: {"id"=>"minus"}
|
378
|
-
Completed 200 OK in 2ms (Views: 0.9ms)
|
379
|
-
Processing by SimplePagesController#show as HTML
|
380
|
-
Parameters: {"id"=>"minus"}
|
381
|
-
Completed 200 OK in 2ms (Views: 0.9ms)
|
382
|
-
Processing by SimplePagesController#show as HTML
|
383
|
-
Parameters: {"id"=>nil}
|
384
|
-
Completed 404 Not Found in 2ms (Views: 0.9ms)
|
385
|
-
Processing by SimplePagesController#show as HTML
|
386
|
-
Parameters: {"id"=>nil}
|
387
|
-
Completed 404 Not Found in 2ms (Views: 0.9ms)
|
388
|
-
Processing by SimplePagesController#show as HTML
|
389
|
-
Parameters: {"id"=>"testing-testing"}
|
390
|
-
Completed 200 OK in 2ms (Views: 1.3ms)
|
391
|
-
Processing by SimplePagesController#show as HTML
|
392
|
-
Parameters: {"id"=>"são-paulo-ribeirão"}
|
393
|
-
Completed 200 OK in 1ms (Views: 1.1ms)
|
394
|
-
Processing by SimplePagesController#show as HTML
|
395
|
-
Parameters: {"id"=>"testing-testing"}
|
396
|
-
Completed 200 OK in 1ms (Views: 0.8ms)
|
397
|
-
Processing by SimplePagesController#show as HTML
|
398
|
-
Parameters: {"id"=>"são-paulo_ribeirão"}
|
399
|
-
Completed 200 OK in 1ms (Views: 0.7ms)
|
400
|
-
Processing by SimplePagesController#show as HTML
|
401
|
-
Parameters: {"id"=>"são-paulo%20ribeirão"}
|
402
|
-
Completed 200 OK in 1ms (Views: 0.7ms)
|
403
|
-
Processing by I18nSimplePagesController#show as HTML
|
404
|
-
Parameters: {"id"=>"contact"}
|
405
|
-
Rendered i18n_simple_pages/contact.html.erb within layouts/application (1.9ms)
|
406
|
-
Completed 200 OK in 82ms (Views: 11.1ms)
|
407
|
-
Processing by I18nSimplePagesController#show as HTML
|
408
|
-
Parameters: {"locale"=>"pt", "id"=>"contato"}
|
409
|
-
Completed 200 OK in 3ms (Views: 2.4ms)
|
410
|
-
Processing by I18nSimplePagesController#show as HTML
|
411
|
-
Parameters: {"locale"=>"pt", "id"=>"contato"}
|
412
|
-
Completed 200 OK in 1ms (Views: 0.9ms)
|
413
|
-
Processing by I18nSimplePagesController#show as HTML
|
414
|
-
Parameters: {"id"=>"contato"}
|
415
|
-
Completed 404 Not Found in 6ms (Views: 1.7ms)
|
416
|
-
Processing by I18nSimplePagesController#show as HTML
|
417
|
-
Parameters: {"id"=>"contato"}
|
418
|
-
Completed 200 OK in 2ms (Views: 1.0ms)
|
419
|
-
Processing by I18nSimplePagesController#show as HTML
|
420
|
-
Parameters: {"id"=>"contato"}
|
421
|
-
Completed 404 Not Found in 2ms (Views: 1.4ms)
|
422
|
-
Processing by SimplePagesController#show as HTML
|
423
|
-
Parameters: {"id"=>"nothing"}
|
424
|
-
Completed 404 Not Found in 5ms (Views: 2.1ms)
|
425
|
-
Processing by SimplePagesController#show as HTML
|
426
|
-
Parameters: {"id"=>"nothing"}
|
427
|
-
Completed 404 Not Found in 2ms (Views: 0.9ms)
|
428
|
-
Processing by SimplePagesController#show as HTML
|
429
|
-
Parameters: {"id"=>"testing"}
|
430
|
-
Completed 200 OK in 2ms (Views: 2.1ms)
|
431
|
-
Processing by SimplePagesController#show as HTML
|
432
|
-
Parameters: {"id"=>"testing"}
|
433
|
-
Completed 200 OK in 1ms (Views: 0.9ms)
|
434
|
-
Processing by SimplePagesController#show as HTML
|
435
|
-
Parameters: {"id"=>"plus"}
|
436
|
-
Completed 200 OK in 2ms (Views: 1.5ms)
|
437
|
-
Processing by SimplePagesController#show as HTML
|
438
|
-
Parameters: {"id"=>"plus"}
|
439
|
-
Completed 200 OK in 1ms (Views: 0.9ms)
|
440
|
-
Processing by SimplePagesController#show as HTML
|
441
|
-
Parameters: {"id"=>"plus"}
|
442
|
-
Completed 200 OK in 1ms (Views: 0.9ms)
|
443
|
-
Processing by SimplePagesController#show as HTML
|
444
|
-
Parameters: {"id"=>"minus"}
|
445
|
-
Completed 200 OK in 3ms (Views: 1.4ms)
|
446
|
-
Processing by SimplePagesController#show as HTML
|
447
|
-
Parameters: {"id"=>"minus"}
|
448
|
-
Completed 200 OK in 1ms (Views: 0.8ms)
|
449
|
-
Processing by SimplePagesController#show as HTML
|
450
|
-
Parameters: {"id"=>"minus"}
|
451
|
-
Completed 200 OK in 2ms (Views: 0.9ms)
|
452
|
-
Processing by SimplePagesController#show as HTML
|
453
|
-
Parameters: {"id"=>nil}
|
454
|
-
Completed 404 Not Found in 2ms (Views: 0.9ms)
|
455
|
-
Processing by SimplePagesController#show as HTML
|
456
|
-
Parameters: {"id"=>nil}
|
457
|
-
Completed 404 Not Found in 1ms (Views: 0.8ms)
|
458
|
-
Processing by SimplePagesController#show as HTML
|
459
|
-
Parameters: {"id"=>"testing-testing"}
|
460
|
-
Completed 200 OK in 1ms (Views: 1.0ms)
|
461
|
-
Processing by SimplePagesController#show as HTML
|
462
|
-
Parameters: {"id"=>"são-paulo-ribeirão"}
|
463
|
-
Completed 200 OK in 1ms (Views: 1.0ms)
|
464
|
-
Processing by SimplePagesController#show as HTML
|
465
|
-
Parameters: {"id"=>"testing-testing"}
|
466
|
-
Completed 200 OK in 1ms (Views: 0.7ms)
|
467
|
-
Processing by SimplePagesController#show as HTML
|
468
|
-
Parameters: {"id"=>"são-paulo_ribeirão"}
|
469
|
-
Completed 200 OK in 1ms (Views: 0.9ms)
|
470
|
-
Processing by SimplePagesController#show as HTML
|
471
|
-
Parameters: {"id"=>"são-paulo%20ribeirão"}
|
472
|
-
Completed 200 OK in 1ms (Views: 0.8ms)
|
473
|
-
Processing by I18nSimplePagesController#show as HTML
|
474
|
-
Parameters: {"id"=>"contact"}
|
475
|
-
Rendered i18n_simple_pages/contact.html.erb within layouts/application (1.9ms)
|
476
|
-
Completed 200 OK in 80ms (Views: 10.8ms)
|
477
|
-
Processing by I18nSimplePagesController#show as HTML
|
478
|
-
Parameters: {"locale"=>"pt", "id"=>"contato"}
|
479
|
-
Completed 200 OK in 3ms (Views: 2.4ms)
|
480
|
-
Processing by I18nSimplePagesController#show as HTML
|
481
|
-
Parameters: {"locale"=>"pt", "id"=>"contato"}
|
482
|
-
Completed 200 OK in 1ms (Views: 0.9ms)
|
483
|
-
Processing by I18nSimplePagesController#show as HTML
|
484
|
-
Parameters: {"id"=>"contato"}
|
485
|
-
Completed 404 Not Found in 6ms (Views: 1.6ms)
|
486
|
-
Processing by I18nSimplePagesController#show as HTML
|
487
|
-
Parameters: {"id"=>"contato"}
|
488
|
-
Completed 200 OK in 1ms (Views: 0.9ms)
|
489
|
-
Processing by I18nSimplePagesController#show as HTML
|
490
|
-
Parameters: {"id"=>"contato"}
|
491
|
-
Completed 404 Not Found in 2ms (Views: 0.8ms)
|
492
|
-
Processing by SimplePagesController#show as HTML
|
493
|
-
Parameters: {"id"=>"nothing"}
|
494
|
-
Completed 404 Not Found in 4ms (Views: 1.8ms)
|
495
|
-
Processing by SimplePagesController#show as HTML
|
496
|
-
Parameters: {"id"=>"nothing"}
|
497
|
-
Completed 404 Not Found in 2ms (Views: 0.8ms)
|
498
|
-
Processing by SimplePagesController#show as HTML
|
499
|
-
Parameters: {"id"=>"testing"}
|
500
|
-
Completed 200 OK in 2ms (Views: 1.7ms)
|
501
|
-
Processing by SimplePagesController#show as HTML
|
502
|
-
Parameters: {"id"=>"testing"}
|
503
|
-
Completed 200 OK in 1ms (Views: 1.0ms)
|
504
|
-
Processing by SimplePagesController#show as HTML
|
505
|
-
Parameters: {"id"=>"plus"}
|
506
|
-
Completed 200 OK in 2ms (Views: 1.9ms)
|
507
|
-
Processing by SimplePagesController#show as HTML
|
508
|
-
Parameters: {"id"=>"plus"}
|
509
|
-
Completed 200 OK in 1ms (Views: 1.0ms)
|
510
|
-
Processing by SimplePagesController#show as HTML
|
511
|
-
Parameters: {"id"=>"plus"}
|
512
|
-
Completed 200 OK in 1ms (Views: 0.9ms)
|
513
|
-
Processing by SimplePagesController#show as HTML
|
514
|
-
Parameters: {"id"=>"minus"}
|
515
|
-
Completed 200 OK in 3ms (Views: 1.5ms)
|
516
|
-
Processing by SimplePagesController#show as HTML
|
517
|
-
Parameters: {"id"=>"minus"}
|
518
|
-
Completed 200 OK in 1ms (Views: 0.8ms)
|
519
|
-
Processing by SimplePagesController#show as HTML
|
520
|
-
Parameters: {"id"=>"minus"}
|
521
|
-
Completed 200 OK in 1ms (Views: 0.8ms)
|
522
|
-
Processing by SimplePagesController#show as HTML
|
523
|
-
Parameters: {"id"=>nil}
|
524
|
-
Completed 500 Internal Server Error in 68ms
|
525
|
-
Processing by SimplePagesController#show as HTML
|
526
|
-
Parameters: {"id"=>nil}
|
527
|
-
Completed 500 Internal Server Error in 63ms
|
528
|
-
Processing by SimplePagesController#show as HTML
|
529
|
-
Parameters: {"id"=>"testing-testing"}
|
530
|
-
Completed 200 OK in 1ms (Views: 1.1ms)
|
531
|
-
Processing by SimplePagesController#show as HTML
|
532
|
-
Parameters: {"id"=>"são-paulo-ribeirão"}
|
533
|
-
Completed 200 OK in 1ms (Views: 1.1ms)
|
534
|
-
Processing by SimplePagesController#show as HTML
|
535
|
-
Parameters: {"id"=>"testing-testing"}
|
536
|
-
Completed 200 OK in 1ms (Views: 1.0ms)
|
537
|
-
Processing by SimplePagesController#show as HTML
|
538
|
-
Parameters: {"id"=>"são-paulo_ribeirão"}
|
539
|
-
Completed 200 OK in 1ms (Views: 0.7ms)
|
540
|
-
Processing by SimplePagesController#show as HTML
|
541
|
-
Parameters: {"id"=>"são-paulo%20ribeirão"}
|
542
|
-
Completed 200 OK in 1ms (Views: 0.7ms)
|
543
|
-
Processing by I18nSimplePagesController#show as HTML
|
544
|
-
Parameters: {"id"=>"contact"}
|
545
|
-
Rendered i18n_simple_pages/contact.html.erb within layouts/application (1.6ms)
|
546
|
-
Completed 200 OK in 100ms (Views: 9.4ms)
|
547
|
-
Processing by I18nSimplePagesController#show as HTML
|
548
|
-
Parameters: {"locale"=>"pt", "id"=>"contato"}
|
549
|
-
Completed 200 OK in 3ms (Views: 2.4ms)
|
550
|
-
Processing by I18nSimplePagesController#show as HTML
|
551
|
-
Parameters: {"locale"=>"pt", "id"=>"contato"}
|
552
|
-
Completed 200 OK in 1ms (Views: 0.9ms)
|
553
|
-
Processing by I18nSimplePagesController#show as HTML
|
554
|
-
Parameters: {"id"=>"contato"}
|
555
|
-
Completed 404 Not Found in 5ms (Views: 1.5ms)
|
556
|
-
Processing by I18nSimplePagesController#show as HTML
|
557
|
-
Parameters: {"id"=>"contato"}
|
558
|
-
Completed 200 OK in 1ms (Views: 0.9ms)
|
559
|
-
Processing by I18nSimplePagesController#show as HTML
|
560
|
-
Parameters: {"id"=>"contato"}
|
561
|
-
Completed 404 Not Found in 1ms (Views: 0.8ms)
|
562
|
-
Processing by SimplePagesController#show as HTML
|
563
|
-
Parameters: {"id"=>"nothing"}
|
564
|
-
Completed 404 Not Found in 3ms (Views: 1.6ms)
|
565
|
-
Processing by SimplePagesController#show as HTML
|
566
|
-
Parameters: {"id"=>"nothing"}
|
567
|
-
Completed 404 Not Found in 1ms (Views: 0.8ms)
|
568
|
-
Processing by SimplePagesController#show as HTML
|
569
|
-
Parameters: {"id"=>"testing"}
|
570
|
-
Completed 200 OK in 2ms (Views: 1.6ms)
|
571
|
-
Processing by SimplePagesController#show as HTML
|
572
|
-
Parameters: {"id"=>"testing"}
|
573
|
-
Completed 200 OK in 1ms (Views: 1.0ms)
|
574
|
-
Processing by SimplePagesController#show as HTML
|
575
|
-
Parameters: {"id"=>"plus"}
|
576
|
-
Completed 200 OK in 2ms (Views: 1.6ms)
|
577
|
-
Processing by SimplePagesController#show as HTML
|
578
|
-
Parameters: {"id"=>"plus"}
|
579
|
-
Completed 200 OK in 1ms (Views: 0.9ms)
|
580
|
-
Processing by SimplePagesController#show as HTML
|
581
|
-
Parameters: {"id"=>"plus"}
|
582
|
-
Completed 200 OK in 1ms (Views: 1.1ms)
|
583
|
-
Processing by SimplePagesController#show as HTML
|
584
|
-
Parameters: {"id"=>"minus"}
|
585
|
-
Completed 200 OK in 3ms (Views: 1.6ms)
|
586
|
-
Processing by SimplePagesController#show as HTML
|
587
|
-
Parameters: {"id"=>"minus"}
|
588
|
-
Completed 200 OK in 1ms (Views: 0.8ms)
|
589
|
-
Processing by SimplePagesController#show as HTML
|
590
|
-
Parameters: {"id"=>"minus"}
|
591
|
-
Completed 200 OK in 1ms (Views: 0.8ms)
|
592
|
-
Processing by SimplePagesController#show as HTML
|
593
|
-
Parameters: {"id"=>nil}
|
594
|
-
Completed 200 OK in 1ms (Views: 0.8ms)
|
595
|
-
Processing by SimplePagesController#show as HTML
|
596
|
-
Parameters: {"id"=>nil}
|
597
|
-
Completed 200 OK in 1ms (Views: 0.8ms)
|
598
|
-
Processing by SimplePagesController#show as HTML
|
599
|
-
Parameters: {"id"=>"testing-testing"}
|
600
|
-
Completed 200 OK in 1ms (Views: 1.0ms)
|
601
|
-
Processing by SimplePagesController#show as HTML
|
602
|
-
Parameters: {"id"=>"são-paulo-ribeirão"}
|
603
|
-
Completed 200 OK in 2ms (Views: 1.2ms)
|
604
|
-
Processing by SimplePagesController#show as HTML
|
605
|
-
Parameters: {"id"=>"testing-testing"}
|
606
|
-
Completed 200 OK in 1ms (Views: 1.1ms)
|
607
|
-
Processing by SimplePagesController#show as HTML
|
608
|
-
Parameters: {"id"=>"são-paulo_ribeirão"}
|
609
|
-
Completed 200 OK in 1ms (Views: 0.7ms)
|
610
|
-
Processing by SimplePagesController#show as HTML
|
611
|
-
Parameters: {"id"=>"são-paulo%20ribeirão"}
|
612
|
-
Completed 200 OK in 1ms (Views: 0.6ms)
|