nav_lynx 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +20 -0
- data/README.md +25 -0
- data/Rakefile +22 -0
- data/app/helpers/nav_link_helper.rb +128 -0
- data/lib/nav_lynx.rb +4 -0
- data/lib/nav_lynx/engine.rb +7 -0
- data/lib/nav_lynx/version.rb +3 -0
- data/spec/dummy/README.rdoc +261 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/assets/javascripts/application.js +15 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/controllers/dashboard_controller.rb +3 -0
- data/spec/dummy/app/controllers/projects_controller.rb +2 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/views/dashboard/show.html.erb +1 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +65 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +37 -0
- data/spec/dummy/config/environments/production.rb +67 -0
- data/spec/dummy/config/environments/test.rb +37 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/inflections.rb +15 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/routes.rb +4 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/schema.rb +16 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +42 -0
- data/spec/dummy/log/test.log +263 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +25 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/features/navigation_spec.rb +9 -0
- data/spec/helpers/nav_link_helper_spec.rb +128 -0
- data/spec/spec_helper.rb +29 -0
- metadata +204 -0
@@ -0,0 +1,263 @@
|
|
1
|
+
Connecting to database specified by database.yml
|
2
|
+
[1m[36m (0.8ms)[0m [1mbegin transaction[0m
|
3
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
6
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
10
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
12
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
13
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
14
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
15
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
16
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
17
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
18
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
19
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
20
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
21
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
22
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
23
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
24
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
25
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
26
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
27
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
28
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
29
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
30
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
31
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
33
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
34
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
35
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
36
|
+
Connecting to database specified by database.yml
|
37
|
+
[1m[36m (0.7ms)[0m [1mbegin transaction[0m
|
38
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
39
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
40
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
41
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
42
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
43
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
44
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
45
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
46
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
47
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
48
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
49
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
50
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
51
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
52
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
53
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
54
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
55
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
56
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
57
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
58
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
59
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
60
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
61
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
62
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
63
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
64
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
65
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
66
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
67
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
68
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
69
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
70
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
71
|
+
Connecting to database specified by database.yml
|
72
|
+
[1m[36m (0.7ms)[0m [1mbegin transaction[0m
|
73
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
74
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
75
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
76
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
77
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
78
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
79
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
80
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
81
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
82
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
83
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
84
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
85
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
86
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
87
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
88
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
89
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
90
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
91
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
92
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
93
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
94
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
95
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
96
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
97
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
98
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
99
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
100
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
101
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
102
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
103
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
104
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
105
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
106
|
+
Connecting to database specified by database.yml
|
107
|
+
[1m[36m (0.8ms)[0m [1mbegin transaction[0m
|
108
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
109
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
110
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
111
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
112
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
113
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
114
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
115
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
116
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
117
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
118
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
119
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
120
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
121
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
122
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
123
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
124
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
125
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
126
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
127
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
128
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
129
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
130
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
131
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
132
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
133
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
134
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
135
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
136
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
137
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
138
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
139
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
140
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
141
|
+
Connecting to database specified by database.yml
|
142
|
+
[1m[36m (0.8ms)[0m [1mbegin transaction[0m
|
143
|
+
Started GET "/" for 127.0.0.1 at 2013-06-12 14:43:53 -0600
|
144
|
+
Processing by DashboardController#show as HTML
|
145
|
+
Rendered dashboard/show.html.erb within layouts/application (15.2ms)
|
146
|
+
Completed 500 Internal Server Error in 49ms
|
147
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
148
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
149
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
150
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
151
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
152
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
153
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
154
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
155
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
156
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
157
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
158
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
159
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
160
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
161
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
162
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
163
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
164
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
165
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
166
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
167
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
168
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
169
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
170
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
171
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
172
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
173
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
174
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
175
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
176
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
177
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
178
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
179
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
180
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
181
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
182
|
+
Connecting to database specified by database.yml
|
183
|
+
[1m[36m (0.9ms)[0m [1mbegin transaction[0m
|
184
|
+
Started GET "/" for 127.0.0.1 at 2013-06-12 14:44:12 -0600
|
185
|
+
Processing by DashboardController#show as HTML
|
186
|
+
Rendered dashboard/show.html.erb within layouts/application (7.6ms)
|
187
|
+
Completed 200 OK in 23ms (Views: 22.3ms | ActiveRecord: 0.0ms)
|
188
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
189
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
190
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
191
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
192
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
193
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
194
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
195
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
196
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
197
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
198
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
199
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
200
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
201
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
202
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
203
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
204
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
205
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
206
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
207
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
208
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
209
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
210
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
211
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
212
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
213
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
214
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
215
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
216
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
217
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
218
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
219
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
220
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
221
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
222
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
223
|
+
Connecting to database specified by database.yml
|
224
|
+
[1m[36m (0.9ms)[0m [1mbegin transaction[0m
|
225
|
+
Started GET "/" for 127.0.0.1 at 2013-06-12 14:48:40 -0600
|
226
|
+
Processing by DashboardController#show as HTML
|
227
|
+
Rendered dashboard/show.html.erb within layouts/application (6.8ms)
|
228
|
+
Completed 200 OK in 21ms (Views: 20.3ms | ActiveRecord: 0.0ms)
|
229
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
230
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
231
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
232
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
233
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
234
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
235
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
236
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
237
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
238
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
239
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
240
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
241
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
242
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
243
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
244
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
245
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
246
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
247
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
248
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
249
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
250
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
251
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
252
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
253
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
254
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
255
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
256
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
257
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
258
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
259
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
260
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
261
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
262
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
263
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/404.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
23
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/422.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
</div>
|
24
|
+
</body>
|
25
|
+
</html>
|
File without changes
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
@@ -0,0 +1,128 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe NavLinkHelper do
|
4
|
+
describe '#nav_link' do
|
5
|
+
let(:link_generator) do
|
6
|
+
lg = double("LinkGenerator")
|
7
|
+
lg.stub(:to_html => true)
|
8
|
+
lg
|
9
|
+
end
|
10
|
+
|
11
|
+
before { helper.stub(:request => :request) }
|
12
|
+
|
13
|
+
it 'accepts only a title and a path' do
|
14
|
+
NavLinkHelper::LinkGenerator.should_receive(:new).with(:request, "My Title", "/path", {}, {})
|
15
|
+
.and_return(link_generator)
|
16
|
+
|
17
|
+
helper.nav_link_to("My Title", "/path")
|
18
|
+
end
|
19
|
+
|
20
|
+
it 'accepts a block that returns the title' do
|
21
|
+
NavLinkHelper::LinkGenerator.should_receive(:new).with(:request, "My Title", "/path", {}, {})
|
22
|
+
.and_return(link_generator)
|
23
|
+
|
24
|
+
helper.nav_link_to("/path") do
|
25
|
+
"My Title"
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
it "accepts options and html_options parameters" do
|
30
|
+
NavLinkHelper::LinkGenerator.should_receive(:new).with(:request, "My Title", "/path", :html_options, :options)
|
31
|
+
.and_return(link_generator)
|
32
|
+
|
33
|
+
helper.nav_link_to("My Title", "/path", :html_options, :options)
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
require 'spec_helper'
|
38
|
+
|
39
|
+
describe NavLinkHelper::LinkGenerator do
|
40
|
+
describe '#to_html' do
|
41
|
+
subject { described_class::LinkGenerator }
|
42
|
+
let(:request){ helper.request }
|
43
|
+
|
44
|
+
it "outputs a simple link when appropriate" do
|
45
|
+
subject.new(request, 'Hi', '/projects').to_html.should == '<a href="/projects">Hi</a>'
|
46
|
+
end
|
47
|
+
|
48
|
+
it "knows when to flag the link as current" do
|
49
|
+
request.stub(:fullpath).and_return('/projects')
|
50
|
+
subject.new(request, 'Hi', '/projects').to_html.should == '<a href="/projects" class="selected">Hi</a>'
|
51
|
+
end
|
52
|
+
|
53
|
+
it "does not flag the link as current if there are parameters in the path" do
|
54
|
+
request.stub(:fullpath).and_return('/projects?all=true')
|
55
|
+
subject.new(request, 'Hi', '/projects').to_html.should == '<a href="/projects">Hi</a>'
|
56
|
+
end
|
57
|
+
|
58
|
+
it "flags the link as selected if there are parameters in the path but we are ignoring parameters" do
|
59
|
+
request.stub(:fullpath).and_return('/projects?all=true')
|
60
|
+
subject.new(request, 'Hi', '/projects', {}, :ignore_params => true).to_html
|
61
|
+
.should == '<a href="/projects" class="selected">Hi</a>'
|
62
|
+
end
|
63
|
+
|
64
|
+
it "allows the specification of an alternate selected class" do
|
65
|
+
request.stub(:fullpath).and_return('/projects')
|
66
|
+
subject.new(request, 'Hi', '/projects', {}, :selected_class => 'current').to_html
|
67
|
+
.should == '<a href="/projects" class="current">Hi</a>'
|
68
|
+
end
|
69
|
+
|
70
|
+
it "generates a wrapper for the link when specified" do
|
71
|
+
subject.new(request, 'Hi', '/projects', {}, :wrapper => 'li').to_html
|
72
|
+
.should == '<li><a href="/projects">Hi</a></li>'
|
73
|
+
end
|
74
|
+
|
75
|
+
it "provides a class for the wrapper when specified" do
|
76
|
+
subject.new(request, 'Hi', '/projects', {}, :wrapper => 'li', :wrapper_class => 'container').to_html
|
77
|
+
.should == '<li class="container"><a href="/projects">Hi</a></li>'
|
78
|
+
end
|
79
|
+
|
80
|
+
it "provides a class for the wrapper when specified along with a selected class if neeeded" do
|
81
|
+
request.stub(:fullpath).and_return('/projects')
|
82
|
+
subject.new(request, 'Hi', '/projects', {}, :wrapper => 'li', :wrapper_class => 'container').to_html
|
83
|
+
.should == '<li class="selected container"><a href="/projects">Hi</a></li>'
|
84
|
+
end
|
85
|
+
|
86
|
+
it "allows specification of the link classes" do
|
87
|
+
subject.new(request, 'Hi', '/projects', :class => 'one two').to_html
|
88
|
+
.should == '<a href="/projects" class="one two">Hi</a>'
|
89
|
+
end
|
90
|
+
|
91
|
+
it "combines custom link classes when the link is selected" do
|
92
|
+
request.stub(:fullpath).and_return('/projects')
|
93
|
+
subject.new(request, 'Hi', '/projects', :class => 'one two').to_html
|
94
|
+
.should == '<a href="/projects" class="one two selected">Hi</a>'
|
95
|
+
end
|
96
|
+
|
97
|
+
it "ignores the ID in the path when provided with a segment" do
|
98
|
+
request.stub(:fullpath).and_return('/projects/2')
|
99
|
+
subject.new(request, 'Hi', '/projects', {}, :url_segment => 1).to_html
|
100
|
+
.should == '<a href="/projects" class="selected">Hi</a>'
|
101
|
+
end
|
102
|
+
|
103
|
+
it "handles deep URL segments" do
|
104
|
+
request.stub(:fullpath).and_return('/projects/2/3')
|
105
|
+
subject.new(request, 'Hi', '/projects/2', {}, :url_segment => 2).to_html
|
106
|
+
.should == '<a href="/projects/2" class="selected">Hi</a>'
|
107
|
+
end
|
108
|
+
|
109
|
+
it "knows to not match on the first segment when requested" do
|
110
|
+
request.stub(:fullpath).and_return('/projects/2/3')
|
111
|
+
subject.new(request, 'Hi', '/projects/1', {}, :url_segment => 2).to_html
|
112
|
+
.should == '<a href="/projects/1">Hi</a>'
|
113
|
+
end
|
114
|
+
|
115
|
+
it "handles matching on the controller segment" do
|
116
|
+
Rails.application.routes.stub(:recognize_path).with('/members/1').and_return(:controller => 'members')
|
117
|
+
Rails.application.routes.stub(:recognize_path).with('/members/pages/1').and_return(:controller => 'members')
|
118
|
+
|
119
|
+
request.stub(:fullpath).and_return('/members/pages/1')
|
120
|
+
request.stub(:path).and_return('/members/pages/1')
|
121
|
+
|
122
|
+
subject.new(request, 'Hi', '/members/1', {}, :controller_segment => 1).to_html
|
123
|
+
.should == '<a href="/members/1" class="selected">Hi</a>'
|
124
|
+
end
|
125
|
+
end
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|