i18n_form_helper 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.rdoc +58 -2
- data/lib/i18n_form_helper.rb +29 -0
- data/lib/i18n_form_helper/version.rb +1 -1
- data/test/dummy/app/views/languages/index.html.erb +39 -0
- data/test/dummy/log/development.log +89 -0
- data/test/dummy/log/test.log +534 -0
- data/test/dummy/tmp/pids/server.pid +1 -0
- data/test/i18n_form_helper_test.rb +13 -1
- data/test/test_helper.rb +0 -1
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MjkxMDhlMDZiZWE0YTI1YzJjZDFkOTJlY2UzMjZhNjk3YTIyZjc5MQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YTY5NzFmZmFlNGNmOWExN2Y1NDY5MDM3NjU1ODE1Y2M4ZTZkNDVlOA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NTQ5NTNmMjY3ZDI1YzU5OGU0MTM3ZTJjYjQ1OWZjNGQ3ZGUzMjVjMWNmMjNk
|
10
|
+
MDNmNDFkNjBhM2ViMjU4NzgxMzU3OWU5MTE3MmFkNjg3YjRkMzExNzhmYmUx
|
11
|
+
Yzg1ZThiYzQ0ZTBlMDAwMTM3ODIwNDkzM2I1NzNmOGUxMDg1Mzc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZTAwOWM4NzdkYTRjN2JhMTM5NzQ2NzRlNzE1Y2M4ZTZjYmFiODRlNTNhYTUx
|
14
|
+
MzFkNTQxZTFiNmEwNjUwNDJlMTYwMzRkOGJkNDZlMjFhMGQ2NzM0MmExYmYz
|
15
|
+
YmRmMGJiYjJhMzc3YTgzYWNmMzY1MmM5YjM2MjNjNTZlMWE2MDg=
|
data/README.rdoc
CHANGED
@@ -1,3 +1,59 @@
|
|
1
|
-
=
|
1
|
+
= i18n_form_helper
|
2
2
|
|
3
|
-
|
3
|
+
i18n_form_helper adds FormBuilder Helpers for input select fields to ActionView::Helpers for ISO Language and Country Codes.
|
4
|
+
|
5
|
+
== Installation
|
6
|
+
|
7
|
+
Using Bundler, add the following to your Gemfile
|
8
|
+
|
9
|
+
gem 'i18n_form_helper'
|
10
|
+
|
11
|
+
or manually via Ruby Gems:
|
12
|
+
|
13
|
+
gem install i18n_form_helper
|
14
|
+
|
15
|
+
== Examples
|
16
|
+
|
17
|
+
The *language_name_select* options contain name pairs ['English', 'English']
|
18
|
+
<%= form_for(Language.new) do |f| %>
|
19
|
+
<%= f.label :name, "English Name to English Name" %>
|
20
|
+
<%= f.language_name_select :name %>
|
21
|
+
<% end %>
|
22
|
+
|
23
|
+
The *language_native_select* options contain native name pairs ['Norsk', 'Norsk']
|
24
|
+
<%= form_for(Language.new) do |f| %>
|
25
|
+
<%= f.label :name, "Native Name to Native Name" %>
|
26
|
+
<%= f.language_native_select :name%>
|
27
|
+
<% end %>
|
28
|
+
|
29
|
+
The *language_code_select* options contain code,native name pairs ['JA', 'にほんご']
|
30
|
+
<%= form_for(Language.new) do |f| %>
|
31
|
+
<%= f.label :name, "Language Code to Native Name" %>
|
32
|
+
<%= f.language_code_select :name %>
|
33
|
+
<% end %>
|
34
|
+
|
35
|
+
The *country_name_select* options contain name pairs ['Australia', 'Australia']
|
36
|
+
<%= form_for(Country.new) do |f| %>
|
37
|
+
<%= f.label :name, "English Country Name to English Country Name" %>
|
38
|
+
<%= f.country_name_select :name %>
|
39
|
+
<% end %>
|
40
|
+
|
41
|
+
The *country_code_select* options contain code,name pairs ['US', 'United States']
|
42
|
+
<%= form_for(Country.new) do |f| %>
|
43
|
+
<%= f.label :name, "Code to English Country Name" %>
|
44
|
+
<%= f.country_code_select :name %>
|
45
|
+
<% end %>
|
46
|
+
|
47
|
+
== Tests
|
48
|
+
|
49
|
+
Developed and Tested with *ruby-1.9.3* and *Rails* *3*
|
50
|
+
|
51
|
+
== Repo
|
52
|
+
|
53
|
+
Please fork, submit patches or feedback at https://github.com/mcelliott/i18n_form_helper
|
54
|
+
|
55
|
+
The gem details on RubyGems.org can be found at https://rubygems.org/gems/i18n_form_helper
|
56
|
+
|
57
|
+
== License
|
58
|
+
|
59
|
+
This project rocks and uses MIT-LICENSE.
|
data/lib/i18n_form_helper.rb
CHANGED
@@ -31,5 +31,34 @@ module ActionView
|
|
31
31
|
end
|
32
32
|
|
33
33
|
end
|
34
|
+
|
35
|
+
module FormTagHelper
|
36
|
+
# English => English
|
37
|
+
def language_name_select_tag(name, options = {})
|
38
|
+
select_tag(name, options_for_select(FormSelectOptions::LanguageOptions.english_name_to_english_name, options.delete(:selected)), options)
|
39
|
+
end
|
40
|
+
|
41
|
+
# Norge => Norge
|
42
|
+
def language_native_select_tag(name, options = {})
|
43
|
+
select_tag(name, options_for_select(FormSelectOptions::LanguageOptions.native_name_to_native_name, options.delete(:selected)), options)
|
44
|
+
end
|
45
|
+
|
46
|
+
# en => English
|
47
|
+
# no => Norsk
|
48
|
+
def language_code_select_tag(name, options = {})
|
49
|
+
select_tag(name, options_for_select(FormSelectOptions::LanguageOptions.code_to_native_name, options.delete(:selected)), options)
|
50
|
+
end
|
51
|
+
|
52
|
+
# United States => United States
|
53
|
+
def country_name_select_tag(name, options = {})
|
54
|
+
select_tag(name, options_for_select(FormSelectOptions::CountryOptions.english_country_name_to_english_country_name, options.delete(:selected)), options)
|
55
|
+
end
|
56
|
+
|
57
|
+
# US => United States
|
58
|
+
def country_code_select_tag(name, options = {})
|
59
|
+
select_tag(name, options_for_select(FormSelectOptions::CountryOptions.code_to_english_country_name, options.delete(:selected)), options)
|
60
|
+
end
|
61
|
+
|
62
|
+
end
|
34
63
|
end
|
35
64
|
end
|
@@ -13,6 +13,8 @@
|
|
13
13
|
</dl>
|
14
14
|
</div>
|
15
15
|
|
16
|
+
<h1>form_for helpers</h1>
|
17
|
+
|
16
18
|
<div id="language_name_select" class="field">
|
17
19
|
<%= form_for(Language.new) do |f| %>
|
18
20
|
<%= f.label :name, "English Name to English Name" %>
|
@@ -46,4 +48,41 @@
|
|
46
48
|
<%= f.label :name, "Code to English Country Name" %>
|
47
49
|
<%= f.country_code_select :name, {}, id: "language[country_code_select]" %>
|
48
50
|
<% end %>
|
51
|
+
</div>
|
52
|
+
|
53
|
+
<h1>form_tag helpers</h1>
|
54
|
+
|
55
|
+
<div id="language_name_select_tag" class="field">
|
56
|
+
<%= form_tag(languages_path) do %>
|
57
|
+
<%= label_tag :name, "English Name to English Name" %>
|
58
|
+
<%= language_name_select_tag :name, id: "language[language_name_select_tag]" %>
|
59
|
+
<% end %>
|
60
|
+
</div>
|
61
|
+
|
62
|
+
<div id="language_native_select_tag" class="field">
|
63
|
+
<%= form_tag(languages_path) do %>
|
64
|
+
<%= label_tag :name, "Native Name to Native Name" %>
|
65
|
+
<%= language_native_select_tag :name, id: "language[language_native_select_tag]" %>
|
66
|
+
<% end %>
|
67
|
+
</div>
|
68
|
+
|
69
|
+
<div id="language_code_select_tag" class="field">
|
70
|
+
<%= form_tag(languages_path) do %>
|
71
|
+
<%= label_tag :name, "Language Code to Native Name" %>
|
72
|
+
<%= language_code_select_tag :name, id: "language[language_code_select_tag]" %>
|
73
|
+
<% end %>
|
74
|
+
</div>
|
75
|
+
|
76
|
+
<div id="country_name_select_tag" class="field">
|
77
|
+
<%= form_tag(languages_path) do %>
|
78
|
+
<%= label_tag :name, "English Country Name to English Country Name" %>
|
79
|
+
<%= country_name_select_tag :name, id: "language[country_name_select_tag]" %>
|
80
|
+
<% end %>
|
81
|
+
</div>
|
82
|
+
|
83
|
+
<div id="country_code_select_tag" class="field">
|
84
|
+
<%= form_tag(languages_path) do %>
|
85
|
+
<%= label_tag :name, "Code to English Country Name" %>
|
86
|
+
<%= country_code_select_tag :name, id: "language[country_code_select_tag]" %>
|
87
|
+
<% end %>
|
49
88
|
</div>
|
@@ -311,3 +311,92 @@ Served asset /languages.js - 304 Not Modified (0ms)
|
|
311
311
|
|
312
312
|
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-12-17 21:56:36 +1100
|
313
313
|
Served asset /application.css - 304 Not Modified (0ms)
|
314
|
+
|
315
|
+
|
316
|
+
Started GET "/" for 127.0.0.1 at 2013-12-18 09:16:24 +1100
|
317
|
+
Connecting to database specified by database.yml
|
318
|
+
Processing by LanguagesController#index as HTML
|
319
|
+
Rendered languages/index.html.erb within layouts/application (155.6ms)
|
320
|
+
Completed 200 OK in 205.8ms (Views: 180.0ms | ActiveRecord: 25.3ms)
|
321
|
+
|
322
|
+
|
323
|
+
Started GET "/assets/languages.css?body=1" for 127.0.0.1 at 2013-12-18 09:16:25 +1100
|
324
|
+
Served asset /languages.css - 200 OK (2ms)
|
325
|
+
|
326
|
+
|
327
|
+
Started GET "/assets/languages.js?body=1" for 127.0.0.1 at 2013-12-18 09:16:25 +1100
|
328
|
+
Served asset /languages.js - 200 OK (1ms)
|
329
|
+
|
330
|
+
|
331
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-12-18 09:16:25 +1100
|
332
|
+
Served asset /application.js - 200 OK (2ms)
|
333
|
+
|
334
|
+
|
335
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-12-18 09:16:25 +1100
|
336
|
+
Served asset /application.css - 200 OK (10ms)
|
337
|
+
|
338
|
+
|
339
|
+
Started GET "/" for 127.0.0.1 at 2013-12-18 09:16:57 +1100
|
340
|
+
Processing by LanguagesController#index as HTML
|
341
|
+
Rendered languages/index.html.erb within layouts/application (149.8ms)
|
342
|
+
Completed 200 OK in 154.1ms (Views: 153.8ms | ActiveRecord: 0.0ms)
|
343
|
+
|
344
|
+
|
345
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-12-18 09:16:58 +1100
|
346
|
+
Served asset /application.css - 304 Not Modified (0ms)
|
347
|
+
|
348
|
+
|
349
|
+
Started GET "/assets/languages.css?body=1" for 127.0.0.1 at 2013-12-18 09:16:58 +1100
|
350
|
+
Served asset /languages.css - 304 Not Modified (0ms)
|
351
|
+
|
352
|
+
|
353
|
+
Started GET "/assets/languages.js?body=1" for 127.0.0.1 at 2013-12-18 09:16:58 +1100
|
354
|
+
Served asset /languages.js - 304 Not Modified (0ms)
|
355
|
+
|
356
|
+
|
357
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-12-18 09:16:59 +1100
|
358
|
+
Served asset /application.js - 304 Not Modified (0ms)
|
359
|
+
|
360
|
+
|
361
|
+
Started GET "/" for 127.0.0.1 at 2013-12-18 09:18:26 +1100
|
362
|
+
Processing by LanguagesController#index as HTML
|
363
|
+
Rendered languages/index.html.erb within layouts/application (51.3ms)
|
364
|
+
Completed 200 OK in 55.6ms (Views: 55.4ms | ActiveRecord: 0.0ms)
|
365
|
+
|
366
|
+
|
367
|
+
Started GET "/assets/languages.css?body=1" for 127.0.0.1 at 2013-12-18 09:18:26 +1100
|
368
|
+
Served asset /languages.css - 304 Not Modified (0ms)
|
369
|
+
|
370
|
+
|
371
|
+
Started GET "/assets/languages.js?body=1" for 127.0.0.1 at 2013-12-18 09:18:26 +1100
|
372
|
+
Served asset /languages.js - 304 Not Modified (0ms)
|
373
|
+
|
374
|
+
|
375
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-12-18 09:18:26 +1100
|
376
|
+
Served asset /application.js - 304 Not Modified (0ms)
|
377
|
+
|
378
|
+
|
379
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-12-18 09:18:26 +1100
|
380
|
+
Served asset /application.css - 304 Not Modified (0ms)
|
381
|
+
|
382
|
+
|
383
|
+
Started GET "/" for 127.0.0.1 at 2013-12-18 09:18:29 +1100
|
384
|
+
Processing by LanguagesController#index as HTML
|
385
|
+
Rendered languages/index.html.erb within layouts/application (93.0ms)
|
386
|
+
Completed 200 OK in 96.7ms (Views: 96.5ms | ActiveRecord: 0.0ms)
|
387
|
+
|
388
|
+
|
389
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-12-18 09:18:29 +1100
|
390
|
+
Served asset /application.css - 304 Not Modified (0ms)
|
391
|
+
|
392
|
+
|
393
|
+
Started GET "/assets/languages.js?body=1" for 127.0.0.1 at 2013-12-18 09:18:29 +1100
|
394
|
+
Served asset /languages.js - 304 Not Modified (0ms)
|
395
|
+
|
396
|
+
|
397
|
+
Started GET "/assets/languages.css?body=1" for 127.0.0.1 at 2013-12-18 09:18:29 +1100
|
398
|
+
Served asset /languages.css - 304 Not Modified (0ms)
|
399
|
+
|
400
|
+
|
401
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-12-18 09:18:29 +1100
|
402
|
+
Served asset /application.js - 304 Not Modified (0ms)
|
data/test/dummy/log/test.log
CHANGED
@@ -1316,3 +1316,537 @@ Completed 200 OK in 181.8ms (Views: 178.5ms | ActiveRecord: 2.4ms)
|
|
1316
1316
|
Processing by LanguagesController#index as HTML
|
1317
1317
|
Completed 200 OK in 55.0ms (Views: 54.6ms | ActiveRecord: 0.0ms)
|
1318
1318
|
[1m[35m (0.1ms)[0m rollback transaction
|
1319
|
+
Connecting to database specified by database.yml
|
1320
|
+
Connecting to database specified by database.yml
|
1321
|
+
Connecting to database specified by database.yml
|
1322
|
+
Connecting to database specified by database.yml
|
1323
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
1324
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1325
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1326
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1327
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1328
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1329
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1330
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1331
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1332
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1333
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1334
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1335
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1336
|
+
Started GET "/languages" for 127.0.0.1 at 2013-12-17 23:59:46 +1100
|
1337
|
+
Processing by LanguagesController#index as HTML
|
1338
|
+
ERROR: compiling _app_views_languages_index_html_erb___4245745688656802736_70366269353960 RAISED /Users/melliott/work/plugins/i18n_form_helper/test/dummy/app/views/languages/index.html.erb:66: syntax error, unexpected keyword_end, expecting $end
|
1339
|
+
'); end
|
1340
|
+
^
|
1341
|
+
Function body: def _app_views_languages_index_html_erb___4245745688656802736_70366269353960(local_assigns, output_buffer)
|
1342
|
+
_old_virtual_path, @virtual_path = @virtual_path, "languages/index";_old_output_buffer = @output_buffer;;@output_buffer = output_buffer || ActionView::OutputBuffer.new;@output_buffer.safe_concat('<!-- #encoding: utf-8 -->
|
1343
|
+
|
1344
|
+
<h1>Languages and Countries</h1>
|
1345
|
+
|
1346
|
+
<h3>Language and Country support for input select fields using ISO Codes</h3>
|
1347
|
+
|
1348
|
+
<div>
|
1349
|
+
<dl>
|
1350
|
+
<dt>Language Codes</dt>
|
1351
|
+
<dd>639-1</dd>
|
1352
|
+
<dt>Country Codes</dt>
|
1353
|
+
<dd>ISO 3166-1 Alpha-2</dd>
|
1354
|
+
</dl>
|
1355
|
+
</div>
|
1356
|
+
|
1357
|
+
<h1>form_for helpers</h1>
|
1358
|
+
|
1359
|
+
<div id="language_name_select" class="field">
|
1360
|
+
');@output_buffer.append= form_for(Language.new) do |f| @output_buffer.safe_concat('
|
1361
|
+
');@output_buffer.safe_concat(' ');@output_buffer.append= ( f.label :name, "English Name to English Name" );@output_buffer.safe_concat('
|
1362
|
+
');@output_buffer.safe_concat(' ');@output_buffer.append= ( f.language_name_select :name, {}, id: "language[language_name_select]" );@output_buffer.safe_concat('
|
1363
|
+
'); end
|
1364
|
+
@output_buffer.safe_concat('</div>
|
1365
|
+
|
1366
|
+
<div id="language_native_select" class="field">
|
1367
|
+
');@output_buffer.append= form_for(Language.new) do |f| @output_buffer.safe_concat('
|
1368
|
+
');@output_buffer.safe_concat(' ');@output_buffer.append= ( f.label :name, "Native Name to Native Name" );@output_buffer.safe_concat('
|
1369
|
+
');@output_buffer.safe_concat(' ');@output_buffer.append= ( f.language_native_select :name, {}, id: "language[language_native_select]" );@output_buffer.safe_concat('
|
1370
|
+
'); end
|
1371
|
+
@output_buffer.safe_concat('</div>
|
1372
|
+
|
1373
|
+
<div id="language_code_select" class="field">
|
1374
|
+
');@output_buffer.append= form_for(Language.new) do |f| @output_buffer.safe_concat('
|
1375
|
+
');@output_buffer.safe_concat(' ');@output_buffer.append= ( f.label :name, "Language Code to Native Name" );@output_buffer.safe_concat('
|
1376
|
+
');@output_buffer.safe_concat(' ');@output_buffer.append= ( f.language_code_select :name, {}, id: "language[language_code_select]" );@output_buffer.safe_concat('
|
1377
|
+
'); end
|
1378
|
+
@output_buffer.safe_concat('</div>
|
1379
|
+
|
1380
|
+
<div id="country_name_select" class="field">
|
1381
|
+
');@output_buffer.append= form_for(Language.new) do |f| @output_buffer.safe_concat('
|
1382
|
+
');@output_buffer.safe_concat(' ');@output_buffer.append= ( f.label :name, "English Country Name to English Country Name" );@output_buffer.safe_concat('
|
1383
|
+
');@output_buffer.safe_concat(' ');@output_buffer.append= ( f.country_name_select :name, {}, id: "language[country_name_select]" );@output_buffer.safe_concat('
|
1384
|
+
'); end
|
1385
|
+
@output_buffer.safe_concat('</div>
|
1386
|
+
|
1387
|
+
<div id="country_code_select" class="field">
|
1388
|
+
');@output_buffer.append= form_for(Language.new) do |f| @output_buffer.safe_concat('
|
1389
|
+
');@output_buffer.safe_concat(' ');@output_buffer.append= ( f.label :name, "Code to English Country Name" );@output_buffer.safe_concat('
|
1390
|
+
');@output_buffer.safe_concat(' ');@output_buffer.append= ( f.country_code_select :name, {}, id: "language[country_code_select]" );@output_buffer.safe_concat('
|
1391
|
+
'); end
|
1392
|
+
@output_buffer.safe_concat('</div>
|
1393
|
+
|
1394
|
+
<h1>form_tag helpers</h1>
|
1395
|
+
|
1396
|
+
<div id="language_name_select_tag" class="field">
|
1397
|
+
');@output_buffer.append= ( form_tag(languages_path) );@output_buffer.safe_concat('
|
1398
|
+
');@output_buffer.safe_concat(' ');@output_buffer.append= ( label_tag :name, "English Name to English Name" );@output_buffer.safe_concat('
|
1399
|
+
');@output_buffer.safe_concat(' ');@output_buffer.append= ( language_name_select_tag :name, {}, id: "language[language_name_select_tag]" );@output_buffer.safe_concat('
|
1400
|
+
'); end
|
1401
|
+
@output_buffer.safe_concat('</div>
|
1402
|
+
|
1403
|
+
<div id="language_native_select_tag" class="field">
|
1404
|
+
');@output_buffer.append= ( form_tag(languages_path) );@output_buffer.safe_concat('
|
1405
|
+
');@output_buffer.safe_concat(' ');@output_buffer.append= ( label_tag :name, "Native Name to Native Name" );@output_buffer.safe_concat('
|
1406
|
+
');@output_buffer.safe_concat(' ');@output_buffer.append= ( language_native_select_tag :name, {}, id: "language[language_native_select_tag]" );@output_buffer.safe_concat('
|
1407
|
+
'); end
|
1408
|
+
@output_buffer.safe_concat('</div>
|
1409
|
+
|
1410
|
+
<div id="language_code_select_tag" class="field">
|
1411
|
+
');@output_buffer.append= ( form_tag(languages_path) );@output_buffer.safe_concat('
|
1412
|
+
');@output_buffer.safe_concat(' ');@output_buffer.append= ( label_tag :name, "Language Code to Native Name" );@output_buffer.safe_concat('
|
1413
|
+
');@output_buffer.safe_concat(' ');@output_buffer.append= ( language_code_select_tag :name, {}, id: "language[language_code_select_tag]" );@output_buffer.safe_concat('
|
1414
|
+
'); end
|
1415
|
+
@output_buffer.safe_concat('</div>
|
1416
|
+
|
1417
|
+
<div id="country_name_select_tag" class="field">
|
1418
|
+
');@output_buffer.append= ( form_tag(languages_path) );@output_buffer.safe_concat('
|
1419
|
+
');@output_buffer.safe_concat(' ');@output_buffer.append= ( label_tag :name, "English Country Name to English Country Name" );@output_buffer.safe_concat('
|
1420
|
+
');@output_buffer.safe_concat(' ');@output_buffer.append= ( country_name_select_tag :name, {}, id: "language[country_name_select_tag]" );@output_buffer.safe_concat('
|
1421
|
+
'); end
|
1422
|
+
@output_buffer.safe_concat('</div>
|
1423
|
+
|
1424
|
+
<div id="country_code_select_tag" class="field">
|
1425
|
+
');@output_buffer.append= ( form_tag(languages_path) );@output_buffer.safe_concat('
|
1426
|
+
');@output_buffer.safe_concat(' ');@output_buffer.append= ( label_tag :name, "Code to English Country Name" );@output_buffer.safe_concat('
|
1427
|
+
');@output_buffer.safe_concat(' ');@output_buffer.append= ( country_code_select_tag :name, {}, id: "language[country_code_select_tag]" );@output_buffer.safe_concat('
|
1428
|
+
'); end
|
1429
|
+
@output_buffer.safe_concat('</div>');@output_buffer.to_s
|
1430
|
+
ensure
|
1431
|
+
@virtual_path, @output_buffer = _old_virtual_path, _old_output_buffer
|
1432
|
+
end
|
1433
|
+
|
1434
|
+
Backtrace: /Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_view/template.rb:297:in `module_eval'
|
1435
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_view/template.rb:297:in `compile'
|
1436
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_view/template.rb:244:in `block in compile!'
|
1437
|
+
<internal:prelude>:10:in `synchronize'
|
1438
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_view/template.rb:232:in `compile!'
|
1439
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_view/template.rb:144:in `block in render'
|
1440
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activesupport-3.2.16/lib/active_support/notifications.rb:123:in `block in instrument'
|
1441
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activesupport-3.2.16/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
|
1442
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activesupport-3.2.16/lib/active_support/notifications.rb:123:in `instrument'
|
1443
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_view/template.rb:143:in `render'
|
1444
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_view/renderer/template_renderer.rb:47:in `block (2 levels) in render_template'
|
1445
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
|
1446
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activesupport-3.2.16/lib/active_support/notifications.rb:123:in `block in instrument'
|
1447
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activesupport-3.2.16/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
|
1448
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activesupport-3.2.16/lib/active_support/notifications.rb:123:in `instrument'
|
1449
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
|
1450
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_view/renderer/template_renderer.rb:46:in `block in render_template'
|
1451
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_view/renderer/template_renderer.rb:54:in `render_with_layout'
|
1452
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_view/renderer/template_renderer.rb:45:in `render_template'
|
1453
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_view/renderer/template_renderer.rb:18:in `render'
|
1454
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_view/renderer/renderer.rb:36:in `render_template'
|
1455
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_view/renderer/renderer.rb:17:in `render'
|
1456
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/abstract_controller/rendering.rb:110:in `_render_template'
|
1457
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_controller/metal/streaming.rb:225:in `_render_template'
|
1458
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/abstract_controller/rendering.rb:103:in `render_to_body'
|
1459
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_controller/metal/renderers.rb:28:in `render_to_body'
|
1460
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_controller/metal/compatibility.rb:50:in `render_to_body'
|
1461
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/abstract_controller/rendering.rb:88:in `render'
|
1462
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_controller/metal/rendering.rb:16:in `render'
|
1463
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
|
1464
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activesupport-3.2.16/lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
|
1465
|
+
/Users/melliott/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
|
1466
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activesupport-3.2.16/lib/active_support/core_ext/benchmark.rb:5:in `ms'
|
1467
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_controller/metal/instrumentation.rb:40:in `block in render'
|
1468
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_controller/metal/instrumentation.rb:83:in `cleanup_view_runtime'
|
1469
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activerecord-3.2.16/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime'
|
1470
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_controller/metal/instrumentation.rb:39:in `render'
|
1471
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_controller/metal/implicit_render.rb:10:in `default_render'
|
1472
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_controller/metal/implicit_render.rb:5:in `send_action'
|
1473
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/abstract_controller/base.rb:167:in `process_action'
|
1474
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_controller/metal/rendering.rb:10:in `process_action'
|
1475
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/abstract_controller/callbacks.rb:18:in `block in process_action'
|
1476
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:414:in `_run__946035419193863039__process_action__3502901466514399524__callbacks'
|
1477
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:405:in `__run_callback'
|
1478
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
|
1479
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:81:in `run_callbacks'
|
1480
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/abstract_controller/callbacks.rb:17:in `process_action'
|
1481
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_controller/metal/rescue.rb:29:in `process_action'
|
1482
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
|
1483
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activesupport-3.2.16/lib/active_support/notifications.rb:123:in `block in instrument'
|
1484
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activesupport-3.2.16/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
|
1485
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activesupport-3.2.16/lib/active_support/notifications.rb:123:in `instrument'
|
1486
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
|
1487
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
|
1488
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activerecord-3.2.16/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
|
1489
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/abstract_controller/base.rb:121:in `process'
|
1490
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/abstract_controller/rendering.rb:45:in `process'
|
1491
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_controller/metal.rb:203:in `dispatch'
|
1492
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
|
1493
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_controller/metal.rb:246:in `block in action'
|
1494
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_dispatch/routing/route_set.rb:73:in `call'
|
1495
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
|
1496
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_dispatch/routing/route_set.rb:36:in `call'
|
1497
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/journey-1.0.4/lib/journey/router.rb:68:in `block in call'
|
1498
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/journey-1.0.4/lib/journey/router.rb:56:in `each'
|
1499
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/journey-1.0.4/lib/journey/router.rb:56:in `call'
|
1500
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_dispatch/routing/route_set.rb:608:in `call'
|
1501
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
|
1502
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/rack-1.4.5/lib/rack/etag.rb:23:in `call'
|
1503
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/rack-1.4.5/lib/rack/conditionalget.rb:25:in `call'
|
1504
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_dispatch/middleware/head.rb:14:in `call'
|
1505
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
|
1506
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_dispatch/middleware/flash.rb:242:in `call'
|
1507
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:210:in `context'
|
1508
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:205:in `call'
|
1509
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_dispatch/middleware/cookies.rb:341:in `call'
|
1510
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activerecord-3.2.16/lib/active_record/query_cache.rb:64:in `call'
|
1511
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
|
1512
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
|
1513
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:405:in `_run__2943598216659913277__call__3565864759149735262__callbacks'
|
1514
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:405:in `__run_callback'
|
1515
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
|
1516
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:81:in `run_callbacks'
|
1517
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
|
1518
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
|
1519
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
|
1520
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
|
1521
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/railties-3.2.16/lib/rails/rack/logger.rb:32:in `call_app'
|
1522
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/railties-3.2.16/lib/rails/rack/logger.rb:16:in `block in call'
|
1523
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activesupport-3.2.16/lib/active_support/tagged_logging.rb:22:in `tagged'
|
1524
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/railties-3.2.16/lib/rails/rack/logger.rb:16:in `call'
|
1525
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_dispatch/middleware/request_id.rb:22:in `call'
|
1526
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/rack-1.4.5/lib/rack/methodoverride.rb:21:in `call'
|
1527
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/rack-1.4.5/lib/rack/runtime.rb:17:in `call'
|
1528
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activesupport-3.2.16/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
|
1529
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/rack-1.4.5/lib/rack/lock.rb:15:in `call'
|
1530
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_dispatch/middleware/static.rb:63:in `call'
|
1531
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/railties-3.2.16/lib/rails/engine.rb:484:in `call'
|
1532
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/railties-3.2.16/lib/rails/application.rb:231:in `call'
|
1533
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/rack-1.4.5/lib/rack/builder.rb:134:in `call'
|
1534
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/rack-1.4.5/lib/rack/urlmap.rb:64:in `block in call'
|
1535
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/rack-1.4.5/lib/rack/urlmap.rb:49:in `each'
|
1536
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/rack-1.4.5/lib/rack/urlmap.rb:49:in `call'
|
1537
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/rack-test-0.6.2/lib/rack/mock_session.rb:30:in `request'
|
1538
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/rack-test-0.6.2/lib/rack/test.rb:230:in `process_request'
|
1539
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/rack-test-0.6.2/lib/rack/test.rb:57:in `get'
|
1540
|
+
/Users/melliott/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/forwardable.rb:201:in `get'
|
1541
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/capybara-2.1.0/lib/capybara/rack_test/browser.rb:59:in `process'
|
1542
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/capybara-2.1.0/lib/capybara/rack_test/browser.rb:35:in `process_and_follow_redirects'
|
1543
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/capybara-2.1.0/lib/capybara/rack_test/browser.rb:21:in `visit'
|
1544
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/capybara-2.1.0/lib/capybara/rack_test/driver.rb:42:in `visit'
|
1545
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/capybara-2.1.0/lib/capybara/session.rb:193:in `visit'
|
1546
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/capybara-2.1.0/lib/capybara/dsl.rb:51:in `block (2 levels) in <module:DSL>'
|
1547
|
+
/Users/melliott/work/plugins/i18n_form_helper/test/i18n_form_helper_test.rb:6:in `block in <class:I18nFormHelperTest>'
|
1548
|
+
/Users/melliott/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/minitest/unit.rb:949:in `run'
|
1549
|
+
/Users/melliott/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/test/unit/testcase.rb:17:in `run'
|
1550
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activesupport-3.2.16/lib/active_support/testing/setup_and_teardown.rb:36:in `block in run'
|
1551
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:447:in `_run__4436532052445688800__setup__3565864759149735262__callbacks'
|
1552
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:405:in `__run_callback'
|
1553
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
|
1554
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:81:in `run_callbacks'
|
1555
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activesupport-3.2.16/lib/active_support/testing/setup_and_teardown.rb:35:in `run'
|
1556
|
+
/Users/melliott/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/minitest/unit.rb:787:in `block in _run_suite'
|
1557
|
+
/Users/melliott/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/minitest/unit.rb:780:in `map'
|
1558
|
+
/Users/melliott/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/minitest/unit.rb:780:in `_run_suite'
|
1559
|
+
/Users/melliott/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/test/unit.rb:565:in `block in _run_suites'
|
1560
|
+
/Users/melliott/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/test/unit.rb:563:in `each'
|
1561
|
+
/Users/melliott/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/test/unit.rb:563:in `_run_suites'
|
1562
|
+
/Users/melliott/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/minitest/unit.rb:746:in `_run_anything'
|
1563
|
+
/Users/melliott/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/minitest/unit.rb:909:in `run_tests'
|
1564
|
+
/Users/melliott/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/minitest/unit.rb:896:in `block in _run'
|
1565
|
+
/Users/melliott/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/minitest/unit.rb:895:in `each'
|
1566
|
+
/Users/melliott/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/minitest/unit.rb:895:in `_run'
|
1567
|
+
/Users/melliott/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/minitest/unit.rb:884:in `run'
|
1568
|
+
/Users/melliott/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/test/unit.rb:21:in `run'
|
1569
|
+
/Users/melliott/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/test/unit.rb:326:in `block (2 levels) in autorun'
|
1570
|
+
/Users/melliott/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/test/unit.rb:27:in `run_once'
|
1571
|
+
/Users/melliott/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/test/unit.rb:325:in `block in autorun'
|
1572
|
+
Rendered languages/index.html.erb within layouts/application (42.7ms)
|
1573
|
+
Completed 500 Internal Server Error in 73.3ms
|
1574
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1575
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1576
|
+
Processing by LanguagesController#index as HTML
|
1577
|
+
ERROR: compiling _app_views_languages_index_html_erb___4245745688656802736_70366269353960 RAISED /Users/melliott/work/plugins/i18n_form_helper/test/dummy/app/views/languages/index.html.erb:66: syntax error, unexpected keyword_end, expecting $end
|
1578
|
+
'); end
|
1579
|
+
^
|
1580
|
+
Function body: def _app_views_languages_index_html_erb___4245745688656802736_70366269353960(local_assigns, output_buffer)
|
1581
|
+
_old_virtual_path, @virtual_path = @virtual_path, "languages/index";_old_output_buffer = @output_buffer;;@output_buffer = output_buffer || ActionView::OutputBuffer.new;@output_buffer.safe_concat('<!-- #encoding: utf-8 -->
|
1582
|
+
|
1583
|
+
<h1>Languages and Countries</h1>
|
1584
|
+
|
1585
|
+
<h3>Language and Country support for input select fields using ISO Codes</h3>
|
1586
|
+
|
1587
|
+
<div>
|
1588
|
+
<dl>
|
1589
|
+
<dt>Language Codes</dt>
|
1590
|
+
<dd>639-1</dd>
|
1591
|
+
<dt>Country Codes</dt>
|
1592
|
+
<dd>ISO 3166-1 Alpha-2</dd>
|
1593
|
+
</dl>
|
1594
|
+
</div>
|
1595
|
+
|
1596
|
+
<h1>form_for helpers</h1>
|
1597
|
+
|
1598
|
+
<div id="language_name_select" class="field">
|
1599
|
+
');@output_buffer.append= form_for(Language.new) do |f| @output_buffer.safe_concat('
|
1600
|
+
');@output_buffer.safe_concat(' ');@output_buffer.append= ( f.label :name, "English Name to English Name" );@output_buffer.safe_concat('
|
1601
|
+
');@output_buffer.safe_concat(' ');@output_buffer.append= ( f.language_name_select :name, {}, id: "language[language_name_select]" );@output_buffer.safe_concat('
|
1602
|
+
'); end
|
1603
|
+
@output_buffer.safe_concat('</div>
|
1604
|
+
|
1605
|
+
<div id="language_native_select" class="field">
|
1606
|
+
');@output_buffer.append= form_for(Language.new) do |f| @output_buffer.safe_concat('
|
1607
|
+
');@output_buffer.safe_concat(' ');@output_buffer.append= ( f.label :name, "Native Name to Native Name" );@output_buffer.safe_concat('
|
1608
|
+
');@output_buffer.safe_concat(' ');@output_buffer.append= ( f.language_native_select :name, {}, id: "language[language_native_select]" );@output_buffer.safe_concat('
|
1609
|
+
'); end
|
1610
|
+
@output_buffer.safe_concat('</div>
|
1611
|
+
|
1612
|
+
<div id="language_code_select" class="field">
|
1613
|
+
');@output_buffer.append= form_for(Language.new) do |f| @output_buffer.safe_concat('
|
1614
|
+
');@output_buffer.safe_concat(' ');@output_buffer.append= ( f.label :name, "Language Code to Native Name" );@output_buffer.safe_concat('
|
1615
|
+
');@output_buffer.safe_concat(' ');@output_buffer.append= ( f.language_code_select :name, {}, id: "language[language_code_select]" );@output_buffer.safe_concat('
|
1616
|
+
'); end
|
1617
|
+
@output_buffer.safe_concat('</div>
|
1618
|
+
|
1619
|
+
<div id="country_name_select" class="field">
|
1620
|
+
');@output_buffer.append= form_for(Language.new) do |f| @output_buffer.safe_concat('
|
1621
|
+
');@output_buffer.safe_concat(' ');@output_buffer.append= ( f.label :name, "English Country Name to English Country Name" );@output_buffer.safe_concat('
|
1622
|
+
');@output_buffer.safe_concat(' ');@output_buffer.append= ( f.country_name_select :name, {}, id: "language[country_name_select]" );@output_buffer.safe_concat('
|
1623
|
+
'); end
|
1624
|
+
@output_buffer.safe_concat('</div>
|
1625
|
+
|
1626
|
+
<div id="country_code_select" class="field">
|
1627
|
+
');@output_buffer.append= form_for(Language.new) do |f| @output_buffer.safe_concat('
|
1628
|
+
');@output_buffer.safe_concat(' ');@output_buffer.append= ( f.label :name, "Code to English Country Name" );@output_buffer.safe_concat('
|
1629
|
+
');@output_buffer.safe_concat(' ');@output_buffer.append= ( f.country_code_select :name, {}, id: "language[country_code_select]" );@output_buffer.safe_concat('
|
1630
|
+
'); end
|
1631
|
+
@output_buffer.safe_concat('</div>
|
1632
|
+
|
1633
|
+
<h1>form_tag helpers</h1>
|
1634
|
+
|
1635
|
+
<div id="language_name_select_tag" class="field">
|
1636
|
+
');@output_buffer.append= ( form_tag(languages_path) );@output_buffer.safe_concat('
|
1637
|
+
');@output_buffer.safe_concat(' ');@output_buffer.append= ( label_tag :name, "English Name to English Name" );@output_buffer.safe_concat('
|
1638
|
+
');@output_buffer.safe_concat(' ');@output_buffer.append= ( language_name_select_tag :name, {}, id: "language[language_name_select_tag]" );@output_buffer.safe_concat('
|
1639
|
+
'); end
|
1640
|
+
@output_buffer.safe_concat('</div>
|
1641
|
+
|
1642
|
+
<div id="language_native_select_tag" class="field">
|
1643
|
+
');@output_buffer.append= ( form_tag(languages_path) );@output_buffer.safe_concat('
|
1644
|
+
');@output_buffer.safe_concat(' ');@output_buffer.append= ( label_tag :name, "Native Name to Native Name" );@output_buffer.safe_concat('
|
1645
|
+
');@output_buffer.safe_concat(' ');@output_buffer.append= ( language_native_select_tag :name, {}, id: "language[language_native_select_tag]" );@output_buffer.safe_concat('
|
1646
|
+
'); end
|
1647
|
+
@output_buffer.safe_concat('</div>
|
1648
|
+
|
1649
|
+
<div id="language_code_select_tag" class="field">
|
1650
|
+
');@output_buffer.append= ( form_tag(languages_path) );@output_buffer.safe_concat('
|
1651
|
+
');@output_buffer.safe_concat(' ');@output_buffer.append= ( label_tag :name, "Language Code to Native Name" );@output_buffer.safe_concat('
|
1652
|
+
');@output_buffer.safe_concat(' ');@output_buffer.append= ( language_code_select_tag :name, {}, id: "language[language_code_select_tag]" );@output_buffer.safe_concat('
|
1653
|
+
'); end
|
1654
|
+
@output_buffer.safe_concat('</div>
|
1655
|
+
|
1656
|
+
<div id="country_name_select_tag" class="field">
|
1657
|
+
');@output_buffer.append= ( form_tag(languages_path) );@output_buffer.safe_concat('
|
1658
|
+
');@output_buffer.safe_concat(' ');@output_buffer.append= ( label_tag :name, "English Country Name to English Country Name" );@output_buffer.safe_concat('
|
1659
|
+
');@output_buffer.safe_concat(' ');@output_buffer.append= ( country_name_select_tag :name, {}, id: "language[country_name_select_tag]" );@output_buffer.safe_concat('
|
1660
|
+
'); end
|
1661
|
+
@output_buffer.safe_concat('</div>
|
1662
|
+
|
1663
|
+
<div id="country_code_select_tag" class="field">
|
1664
|
+
');@output_buffer.append= ( form_tag(languages_path) );@output_buffer.safe_concat('
|
1665
|
+
');@output_buffer.safe_concat(' ');@output_buffer.append= ( label_tag :name, "Code to English Country Name" );@output_buffer.safe_concat('
|
1666
|
+
');@output_buffer.safe_concat(' ');@output_buffer.append= ( country_code_select_tag :name, {}, id: "language[country_code_select_tag]" );@output_buffer.safe_concat('
|
1667
|
+
'); end
|
1668
|
+
@output_buffer.safe_concat('</div>');@output_buffer.to_s
|
1669
|
+
ensure
|
1670
|
+
@virtual_path, @output_buffer = _old_virtual_path, _old_output_buffer
|
1671
|
+
end
|
1672
|
+
|
1673
|
+
Backtrace: /Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_view/template.rb:297:in `module_eval'
|
1674
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_view/template.rb:297:in `compile'
|
1675
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_view/template.rb:244:in `block in compile!'
|
1676
|
+
<internal:prelude>:10:in `synchronize'
|
1677
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_view/template.rb:232:in `compile!'
|
1678
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_view/template.rb:144:in `block in render'
|
1679
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activesupport-3.2.16/lib/active_support/notifications.rb:123:in `block in instrument'
|
1680
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activesupport-3.2.16/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
|
1681
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activesupport-3.2.16/lib/active_support/notifications.rb:123:in `instrument'
|
1682
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_view/template.rb:143:in `render'
|
1683
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_view/renderer/template_renderer.rb:47:in `block (2 levels) in render_template'
|
1684
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
|
1685
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activesupport-3.2.16/lib/active_support/notifications.rb:123:in `block in instrument'
|
1686
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activesupport-3.2.16/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
|
1687
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activesupport-3.2.16/lib/active_support/notifications.rb:123:in `instrument'
|
1688
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
|
1689
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_view/renderer/template_renderer.rb:46:in `block in render_template'
|
1690
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_view/renderer/template_renderer.rb:54:in `render_with_layout'
|
1691
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_view/renderer/template_renderer.rb:45:in `render_template'
|
1692
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_view/renderer/template_renderer.rb:18:in `render'
|
1693
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_view/renderer/renderer.rb:36:in `render_template'
|
1694
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_view/renderer/renderer.rb:17:in `render'
|
1695
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/abstract_controller/rendering.rb:110:in `_render_template'
|
1696
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_controller/metal/streaming.rb:225:in `_render_template'
|
1697
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/abstract_controller/rendering.rb:103:in `render_to_body'
|
1698
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_controller/metal/renderers.rb:28:in `render_to_body'
|
1699
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_controller/metal/compatibility.rb:50:in `render_to_body'
|
1700
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/abstract_controller/rendering.rb:88:in `render'
|
1701
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_controller/metal/rendering.rb:16:in `render'
|
1702
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
|
1703
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activesupport-3.2.16/lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
|
1704
|
+
/Users/melliott/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
|
1705
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activesupport-3.2.16/lib/active_support/core_ext/benchmark.rb:5:in `ms'
|
1706
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_controller/metal/instrumentation.rb:40:in `block in render'
|
1707
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_controller/metal/instrumentation.rb:83:in `cleanup_view_runtime'
|
1708
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activerecord-3.2.16/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime'
|
1709
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_controller/metal/instrumentation.rb:39:in `render'
|
1710
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_controller/metal/implicit_render.rb:10:in `default_render'
|
1711
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_controller/metal/implicit_render.rb:5:in `send_action'
|
1712
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/abstract_controller/base.rb:167:in `process_action'
|
1713
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_controller/metal/rendering.rb:10:in `process_action'
|
1714
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/abstract_controller/callbacks.rb:18:in `block in process_action'
|
1715
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:414:in `_run__946035419193863039__process_action__3502901466514399524__callbacks'
|
1716
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:405:in `__run_callback'
|
1717
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
|
1718
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:81:in `run_callbacks'
|
1719
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/abstract_controller/callbacks.rb:17:in `process_action'
|
1720
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_controller/metal/rescue.rb:29:in `process_action'
|
1721
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
|
1722
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activesupport-3.2.16/lib/active_support/notifications.rb:123:in `block in instrument'
|
1723
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activesupport-3.2.16/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
|
1724
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activesupport-3.2.16/lib/active_support/notifications.rb:123:in `instrument'
|
1725
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
|
1726
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
|
1727
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activerecord-3.2.16/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
|
1728
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/abstract_controller/base.rb:121:in `process'
|
1729
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/abstract_controller/rendering.rb:45:in `process'
|
1730
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_controller/metal/testing.rb:17:in `process_with_new_base_test'
|
1731
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_controller/test_case.rb:490:in `process'
|
1732
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_controller/test_case.rb:54:in `process'
|
1733
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/actionpack-3.2.16/lib/action_controller/test_case.rb:407:in `get'
|
1734
|
+
/Users/melliott/work/plugins/i18n_form_helper/test/dummy/test/functional/languages_controller_test.rb:5:in `block in <class:LanguagesControllerTest>'
|
1735
|
+
/Users/melliott/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/minitest/unit.rb:949:in `run'
|
1736
|
+
/Users/melliott/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/test/unit/testcase.rb:17:in `run'
|
1737
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activesupport-3.2.16/lib/active_support/testing/setup_and_teardown.rb:36:in `block in run'
|
1738
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:458:in `_run__2653122016083479530__setup__3565864759149735262__callbacks'
|
1739
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:405:in `__run_callback'
|
1740
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
|
1741
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:81:in `run_callbacks'
|
1742
|
+
/Users/melliott/.rvm/gems/ruby-1.9.3-p448@hagrid/gems/activesupport-3.2.16/lib/active_support/testing/setup_and_teardown.rb:35:in `run'
|
1743
|
+
/Users/melliott/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/minitest/unit.rb:787:in `block in _run_suite'
|
1744
|
+
/Users/melliott/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/minitest/unit.rb:780:in `map'
|
1745
|
+
/Users/melliott/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/minitest/unit.rb:780:in `_run_suite'
|
1746
|
+
/Users/melliott/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/test/unit.rb:565:in `block in _run_suites'
|
1747
|
+
/Users/melliott/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/test/unit.rb:563:in `each'
|
1748
|
+
/Users/melliott/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/test/unit.rb:563:in `_run_suites'
|
1749
|
+
/Users/melliott/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/minitest/unit.rb:746:in `_run_anything'
|
1750
|
+
/Users/melliott/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/minitest/unit.rb:909:in `run_tests'
|
1751
|
+
/Users/melliott/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/minitest/unit.rb:896:in `block in _run'
|
1752
|
+
/Users/melliott/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/minitest/unit.rb:895:in `each'
|
1753
|
+
/Users/melliott/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/minitest/unit.rb:895:in `_run'
|
1754
|
+
/Users/melliott/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/minitest/unit.rb:884:in `run'
|
1755
|
+
/Users/melliott/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/test/unit.rb:21:in `run'
|
1756
|
+
/Users/melliott/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/test/unit.rb:326:in `block (2 levels) in autorun'
|
1757
|
+
/Users/melliott/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/test/unit.rb:27:in `run_once'
|
1758
|
+
/Users/melliott/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/test/unit.rb:325:in `block in autorun'
|
1759
|
+
Completed 500 Internal Server Error in 2.3ms
|
1760
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1761
|
+
Connecting to database specified by database.yml
|
1762
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
1763
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1764
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1765
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1766
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1767
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1768
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1769
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1770
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1771
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1772
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1773
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1774
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1775
|
+
Started GET "/languages" for 127.0.0.1 at 2013-12-18 00:00:52 +1100
|
1776
|
+
Processing by LanguagesController#index as HTML
|
1777
|
+
Rendered languages/index.html.erb within layouts/application (192.9ms)
|
1778
|
+
Completed 500 Internal Server Error in 203.3ms
|
1779
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1780
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1781
|
+
Processing by LanguagesController#index as HTML
|
1782
|
+
Completed 500 Internal Server Error in 61.1ms
|
1783
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1784
|
+
Connecting to database specified by database.yml
|
1785
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
1786
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1787
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1788
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1789
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1790
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1791
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1792
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1793
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1794
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1795
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1796
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1797
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1798
|
+
Started GET "/languages" for 127.0.0.1 at 2013-12-18 00:01:29 +1100
|
1799
|
+
Processing by LanguagesController#index as HTML
|
1800
|
+
Rendered languages/index.html.erb within layouts/application (99.5ms)
|
1801
|
+
Completed 200 OK in 152.8ms (Views: 150.5ms | ActiveRecord: 1.8ms)
|
1802
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1803
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1804
|
+
Processing by LanguagesController#index as HTML
|
1805
|
+
Completed 200 OK in 32.1ms (Views: 31.9ms | ActiveRecord: 0.0ms)
|
1806
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1807
|
+
Connecting to database specified by database.yml
|
1808
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
1809
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1810
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1811
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1812
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1813
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1814
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1815
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1816
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1817
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1818
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1819
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1820
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1821
|
+
Started GET "/languages" for 127.0.0.1 at 2013-12-18 00:02:06 +1100
|
1822
|
+
Processing by LanguagesController#index as HTML
|
1823
|
+
Rendered languages/index.html.erb within layouts/application (105.6ms)
|
1824
|
+
Completed 200 OK in 163.7ms (Views: 160.9ms | ActiveRecord: 2.3ms)
|
1825
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1826
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1827
|
+
Processing by LanguagesController#index as HTML
|
1828
|
+
Completed 200 OK in 32.7ms (Views: 32.5ms | ActiveRecord: 0.0ms)
|
1829
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1830
|
+
Connecting to database specified by database.yml
|
1831
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
1832
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1833
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1834
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1835
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1836
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1837
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1838
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1839
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1840
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1841
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1842
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1843
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1844
|
+
Started GET "/languages" for 127.0.0.1 at 2013-12-18 09:21:32 +1100
|
1845
|
+
Processing by LanguagesController#index as HTML
|
1846
|
+
Rendered languages/index.html.erb within layouts/application (129.2ms)
|
1847
|
+
Completed 200 OK in 150.0ms (Views: 147.3ms | ActiveRecord: 2.3ms)
|
1848
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1849
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1850
|
+
Processing by LanguagesController#index as HTML
|
1851
|
+
Completed 200 OK in 80.5ms (Views: 80.3ms | ActiveRecord: 0.0ms)
|
1852
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
@@ -0,0 +1 @@
|
|
1
|
+
32990
|
@@ -4,7 +4,7 @@ class I18nFormHelperTest < ActionDispatch::IntegrationTest
|
|
4
4
|
|
5
5
|
test "language select on index" do
|
6
6
|
visit languages_path
|
7
|
-
page.assert_selector('h1', text: 'Languages
|
7
|
+
page.assert_selector('h1', text: 'Languages and Countries')
|
8
8
|
page.assert_selector('div#language_name_select')
|
9
9
|
page.assert_selector('div#language_native_select')
|
10
10
|
page.assert_selector('div#language_code_select')
|
@@ -16,5 +16,17 @@ class I18nFormHelperTest < ActionDispatch::IntegrationTest
|
|
16
16
|
select('EN', :from => 'language[language_code_select]')
|
17
17
|
select('Australia', :from => 'language[country_name_select]')
|
18
18
|
select('AU', :from => 'language[country_code_select]')
|
19
|
+
|
20
|
+
page.assert_selector('div#language_name_select_tag')
|
21
|
+
page.assert_selector('div#language_native_select_tag')
|
22
|
+
page.assert_selector('div#language_code_select_tag')
|
23
|
+
page.assert_selector('div#country_name_select_tag')
|
24
|
+
page.assert_selector('div#country_code_select_tag')
|
25
|
+
|
26
|
+
select('English', :from => 'language[language_name_select_tag]')
|
27
|
+
select('English', :from => 'language[language_native_select_tag]')
|
28
|
+
select('EN', :from => 'language[language_code_select_tag]')
|
29
|
+
select('Australia', :from => 'language[country_name_select_tag]')
|
30
|
+
select('AU', :from => 'language[country_code_select_tag]')
|
19
31
|
end
|
20
32
|
end
|
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: i18n_form_helper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Elliott
|
@@ -104,6 +104,7 @@ files:
|
|
104
104
|
- test/dummy/tmp/capybara/capybara-20131217211129299664262.html
|
105
105
|
- test/dummy/tmp/capybara/capybara-201312172113193631383614.html
|
106
106
|
- test/dummy/tmp/capybara/capybara-201312172117421338188983.html
|
107
|
+
- test/dummy/tmp/pids/server.pid
|
107
108
|
- test/form_select_options_test.rb
|
108
109
|
- test/i18n_form_helper_test.rb
|
109
110
|
- test/test_helper.rb
|
@@ -197,6 +198,7 @@ test_files:
|
|
197
198
|
- test/dummy/tmp/capybara/capybara-20131217211129299664262.html
|
198
199
|
- test/dummy/tmp/capybara/capybara-201312172113193631383614.html
|
199
200
|
- test/dummy/tmp/capybara/capybara-201312172117421338188983.html
|
201
|
+
- test/dummy/tmp/pids/server.pid
|
200
202
|
- test/form_select_options_test.rb
|
201
203
|
- test/i18n_form_helper_test.rb
|
202
204
|
- test/test_helper.rb
|