erubis 2.4.1 → 2.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. data/{CHANGES → CHANGES.txt} +59 -3
  2. data/MIT-LICENSE +1 -1
  3. data/README.txt +5 -5
  4. data/benchmark/bench.rb +2 -2
  5. data/bin/erubis +2 -2
  6. data/contrib/erubis +46 -46
  7. data/contrib/inline-require +2 -2
  8. data/doc-api/classes/Erubis.html +5 -1
  9. data/doc-api/classes/Erubis/ArrayEnhancer.html +12 -12
  10. data/doc-api/classes/Erubis/BiPatternEnhancer.html +12 -12
  11. data/doc-api/classes/Erubis/CGenerator.html +60 -60
  12. data/doc-api/classes/Erubis/Context.html +42 -42
  13. data/doc-api/classes/Erubis/DeleteIndentEnhancer.html +6 -6
  14. data/doc-api/classes/Erubis/Engine.html +30 -30
  15. data/doc-api/classes/Erubis/ErboutEnhancer.html +12 -12
  16. data/doc-api/classes/Erubis/EscapeEnhancer.html +6 -6
  17. data/doc-api/classes/Erubis/HeaderFooterEnhancer.html +12 -12
  18. data/doc-api/classes/Erubis/Helpers.html +6 -1
  19. data/doc-api/classes/Erubis/Helpers/RailsFormHelper.html +762 -0
  20. data/doc-api/classes/Erubis/Helpers/RailsHelper.html +12 -18
  21. data/doc-api/classes/Erubis/Helpers/RailsHelper/PreprocessingEruby.html +2 -2
  22. data/doc-api/classes/Erubis/JavaGenerator.html +54 -54
  23. data/doc-api/classes/Erubis/JavascriptGenerator.html +60 -60
  24. data/doc-api/classes/Erubis/Main.html +19 -19
  25. data/doc-api/classes/Erubis/NoTextEnhancer.html +6 -6
  26. data/doc-api/classes/Erubis/OptimizedEruby.html +6 -6
  27. data/doc-api/classes/Erubis/OptimizedGenerator.html +72 -72
  28. data/doc-api/classes/Erubis/OptimizedXmlEruby.html +6 -6
  29. data/doc-api/classes/Erubis/PercentLineEnhancer.html +6 -6
  30. data/doc-api/classes/Erubis/PhpGenerator.html +54 -54
  31. data/doc-api/classes/Erubis/PrintEnabledEnhancer.html +20 -20
  32. data/doc-api/classes/Erubis/PrintOutEnhancer.html +30 -30
  33. data/doc-api/classes/Erubis/RubyEvaluator.html +18 -18
  34. data/doc-api/classes/Erubis/StringBufferEnhancer.html +12 -12
  35. data/doc-api/classes/Erubis/TinyEruby.html +24 -24
  36. data/doc-api/classes/Erubis/XmlHelper.html +30 -30
  37. data/doc-api/created.rid +1 -1
  38. data/doc-api/files/README_txt.html +6 -7
  39. data/doc-api/files/erubis/context_rb.html +1 -1
  40. data/doc-api/files/erubis/converter_rb.html +1 -1
  41. data/doc-api/files/erubis/engine/ec_rb.html +1 -1
  42. data/doc-api/files/erubis/engine/ejava_rb.html +1 -1
  43. data/doc-api/files/erubis/engine/ejavascript_rb.html +1 -1
  44. data/doc-api/files/erubis/engine/enhanced_rb.html +1 -1
  45. data/doc-api/files/erubis/engine/eperl_rb.html +1 -1
  46. data/doc-api/files/erubis/engine/ephp_rb.html +1 -1
  47. data/doc-api/files/erubis/engine/eruby_rb.html +1 -1
  48. data/doc-api/files/erubis/engine/escheme_rb.html +1 -1
  49. data/doc-api/files/erubis/engine/optimized_rb.html +1 -1
  50. data/doc-api/files/erubis/engine_rb.html +1 -1
  51. data/doc-api/files/erubis/enhancer_rb.html +1 -1
  52. data/doc-api/files/erubis/error_rb.html +1 -1
  53. data/doc-api/files/erubis/evaluator_rb.html +1 -1
  54. data/doc-api/files/erubis/generator_rb.html +1 -1
  55. data/doc-api/files/erubis/helper_rb.html +1 -1
  56. data/doc-api/files/erubis/helpers/rails_form_helper_rb.html +107 -0
  57. data/doc-api/files/erubis/helpers/rails_helper_rb.html +2 -2
  58. data/doc-api/files/erubis/local-setting_rb.html +1 -1
  59. data/doc-api/files/erubis/main_rb.html +1 -1
  60. data/doc-api/files/erubis/tiny_rb.html +1 -1
  61. data/doc-api/files/erubis_rb.html +2 -2
  62. data/doc-api/fr_class_index.html +1 -0
  63. data/doc-api/fr_file_index.html +1 -0
  64. data/doc-api/fr_method_index.html +162 -138
  65. data/doc/users-guide.html +157 -62
  66. data/lib/erubis.rb +4 -4
  67. data/lib/erubis/context.rb +2 -2
  68. data/lib/erubis/converter.rb +2 -2
  69. data/lib/erubis/engine.rb +2 -2
  70. data/lib/erubis/engine/ec.rb +2 -2
  71. data/lib/erubis/engine/ejava.rb +2 -2
  72. data/lib/erubis/engine/ejavascript.rb +2 -2
  73. data/lib/erubis/engine/enhanced.rb +2 -2
  74. data/lib/erubis/engine/eperl.rb +2 -2
  75. data/lib/erubis/engine/ephp.rb +2 -2
  76. data/lib/erubis/engine/eruby.rb +2 -2
  77. data/lib/erubis/engine/escheme.rb +2 -2
  78. data/lib/erubis/engine/optimized.rb +2 -2
  79. data/lib/erubis/enhancer.rb +2 -2
  80. data/lib/erubis/error.rb +2 -2
  81. data/lib/erubis/evaluator.rb +2 -2
  82. data/lib/erubis/generator.rb +2 -2
  83. data/lib/erubis/helper.rb +2 -2
  84. data/lib/erubis/helpers/rails_form_helper.rb +190 -0
  85. data/lib/erubis/helpers/rails_helper.rb +63 -28
  86. data/lib/erubis/local-setting.rb +2 -2
  87. data/lib/erubis/main.rb +2 -2
  88. data/lib/erubis/tiny.rb +2 -2
  89. data/test/assert-text-equal.rb +2 -2
  90. data/test/test-engines.rb +2 -2
  91. data/test/test-enhancers.rb +2 -2
  92. data/test/test-erubis.rb +2 -2
  93. data/test/test-main.rb +2 -2
  94. data/test/test-users-guide.rb +2 -2
  95. data/test/test.rb +2 -2
  96. data/test/testutil.rb +2 -2
  97. metadata +53 -44
  98. data/test/data/users-guide/stderr.log +0 -3
@@ -89,7 +89,7 @@ this is language-independent.
89
89
  <h3 class="section-bar">Methods</h3>
90
90
 
91
91
  <div class="name-list">
92
- <a href="#M000163">convert_input</a>&nbsp;&nbsp;
92
+ <a href="#M000187">convert_input</a>&nbsp;&nbsp;
93
93
  </div>
94
94
  </div>
95
95
 
@@ -111,19 +111,19 @@ this is language-independent.
111
111
  <div id="methods">
112
112
  <h3 class="section-bar">Public Instance methods</h3>
113
113
 
114
- <div id="method-M000163" class="method-detail">
115
- <a name="M000163"></a>
114
+ <div id="method-M000187" class="method-detail">
115
+ <a name="M000187"></a>
116
116
 
117
117
  <div class="method-heading">
118
- <a href="#M000163" class="method-signature">
118
+ <a href="#M000187" class="method-signature">
119
119
  <span class="method-name">convert_input</span><span class="method-args">(src, input)</span>
120
120
  </a>
121
121
  </div>
122
122
 
123
123
  <div class="method-description">
124
124
  <p><a class="source-toggle" href="#"
125
- onclick="toggleCode('M000163-source');return false;">[Source]</a></p>
126
- <div class="method-source-code" id="M000163-source">
125
+ onclick="toggleCode('M000187-source');return false;">[Source]</a></p>
126
+ <div class="method-source-code" id="M000187-source">
127
127
  <pre>
128
128
  <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 571</span>
129
129
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">convert_input</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">input</span>)
@@ -93,11 +93,11 @@ converter module.
93
93
  <h3 class="section-bar">Methods</h3>
94
94
 
95
95
  <div class="name-list">
96
- <a href="#M000174">convert!</a>&nbsp;&nbsp;
97
- <a href="#M000175">load_file</a>&nbsp;&nbsp;
98
- <a href="#M000173">new</a>&nbsp;&nbsp;
99
- <a href="#M000176">process</a>&nbsp;&nbsp;
100
- <a href="#M000177">process_proc</a>&nbsp;&nbsp;
96
+ <a href="#M000198">convert!</a>&nbsp;&nbsp;
97
+ <a href="#M000199">load_file</a>&nbsp;&nbsp;
98
+ <a href="#M000197">new</a>&nbsp;&nbsp;
99
+ <a href="#M000200">process</a>&nbsp;&nbsp;
100
+ <a href="#M000201">process_proc</a>&nbsp;&nbsp;
101
101
  </div>
102
102
  </div>
103
103
 
@@ -119,11 +119,11 @@ converter module.
119
119
  <div id="methods">
120
120
  <h3 class="section-bar">Public Class methods</h3>
121
121
 
122
- <div id="method-M000175" class="method-detail">
123
- <a name="M000175"></a>
122
+ <div id="method-M000199" class="method-detail">
123
+ <a name="M000199"></a>
124
124
 
125
125
  <div class="method-heading">
126
- <a href="#M000175" class="method-signature">
126
+ <a href="#M000199" class="method-signature">
127
127
  <span class="method-name">load_file</span><span class="method-args">(filename, properties={})</span>
128
128
  </a>
129
129
  </div>
@@ -134,8 +134,8 @@ load file, write cache file, and return engine object. this method create
134
134
  cache file (filename + &#8217;.cache&#8217;) automatically.
135
135
  </p>
136
136
  <p><a class="source-toggle" href="#"
137
- onclick="toggleCode('M000175-source');return false;">[Source]</a></p>
138
- <div class="method-source-code" id="M000175-source">
137
+ onclick="toggleCode('M000199-source');return false;">[Source]</a></p>
138
+ <div class="method-source-code" id="M000199-source">
139
139
  <pre>
140
140
  <span class="ruby-comment cmt"># File erubis/engine.rb, line 47</span>
141
141
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">load_file</span>(<span class="ruby-identifier">filename</span>, <span class="ruby-identifier">properties</span>={})
@@ -160,11 +160,11 @@ cache file (filename + &#8217;.cache&#8217;) automatically.
160
160
  </div>
161
161
  </div>
162
162
 
163
- <div id="method-M000173" class="method-detail">
164
- <a name="M000173"></a>
163
+ <div id="method-M000197" class="method-detail">
164
+ <a name="M000197"></a>
165
165
 
166
166
  <div class="method-heading">
167
- <a href="#M000173" class="method-signature">
167
+ <a href="#M000197" class="method-signature">
168
168
  <span class="method-name">new</span><span class="method-args">(input=nil, properties={})</span>
169
169
  </a>
170
170
  </div>
@@ -176,8 +176,8 @@ href="Converter.html">Converter</a> include <a
176
176
  href="Generator.html">Generator</a>
177
177
  </p>
178
178
  <p><a class="source-toggle" href="#"
179
- onclick="toggleCode('M000173-source');return false;">[Source]</a></p>
180
- <div class="method-source-code" id="M000173-source">
179
+ onclick="toggleCode('M000197-source');return false;">[Source]</a></p>
180
+ <div class="method-source-code" id="M000197-source">
181
181
  <pre>
182
182
  <span class="ruby-comment cmt"># File erubis/engine.rb, line 26</span>
183
183
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">input</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">properties</span>={})
@@ -194,11 +194,11 @@ href="Generator.html">Generator</a>
194
194
 
195
195
  <h3 class="section-bar">Public Instance methods</h3>
196
196
 
197
- <div id="method-M000174" class="method-detail">
198
- <a name="M000174"></a>
197
+ <div id="method-M000198" class="method-detail">
198
+ <a name="M000198"></a>
199
199
 
200
200
  <div class="method-heading">
201
- <a href="#M000174" class="method-signature">
201
+ <a href="#M000198" class="method-signature">
202
202
  <span class="method-name">convert!</span><span class="method-args">(input)</span>
203
203
  </a>
204
204
  </div>
@@ -208,8 +208,8 @@ href="Generator.html">Generator</a>
208
208
  convert input string and set it to @src
209
209
  </p>
210
210
  <p><a class="source-toggle" href="#"
211
- onclick="toggleCode('M000174-source');return false;">[Source]</a></p>
212
- <div class="method-source-code" id="M000174-source">
211
+ onclick="toggleCode('M000198-source');return false;">[Source]</a></p>
212
+ <div class="method-source-code" id="M000198-source">
213
213
  <pre>
214
214
  <span class="ruby-comment cmt"># File erubis/engine.rb, line 38</span>
215
215
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">convert!</span>(<span class="ruby-identifier">input</span>)
@@ -220,11 +220,11 @@ convert input string and set it to @src
220
220
  </div>
221
221
  </div>
222
222
 
223
- <div id="method-M000176" class="method-detail">
224
- <a name="M000176"></a>
223
+ <div id="method-M000200" class="method-detail">
224
+ <a name="M000200"></a>
225
225
 
226
226
  <div class="method-heading">
227
- <a href="#M000176" class="method-signature">
227
+ <a href="#M000200" class="method-signature">
228
228
  <span class="method-name">process</span><span class="method-args">(input, context=nil, filename=nil)</span>
229
229
  </a>
230
230
  </div>
@@ -235,8 +235,8 @@ helper method to convert and evaluate input text with context object.
235
235
  context may be Binding, Hash, or Object.
236
236
  </p>
237
237
  <p><a class="source-toggle" href="#"
238
- onclick="toggleCode('M000176-source');return false;">[Source]</a></p>
239
- <div class="method-source-code" id="M000176-source">
238
+ onclick="toggleCode('M000200-source');return false;">[Source]</a></p>
239
+ <div class="method-source-code" id="M000200-source">
240
240
  <pre>
241
241
  <span class="ruby-comment cmt"># File erubis/engine.rb, line 70</span>
242
242
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process</span>(<span class="ruby-identifier">input</span>, <span class="ruby-identifier">context</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">filename</span>=<span class="ruby-keyword kw">nil</span>)
@@ -254,11 +254,11 @@ context may be Binding, Hash, or Object.
254
254
  </div>
255
255
  </div>
256
256
 
257
- <div id="method-M000177" class="method-detail">
258
- <a name="M000177"></a>
257
+ <div id="method-M000201" class="method-detail">
258
+ <a name="M000201"></a>
259
259
 
260
260
  <div class="method-heading">
261
- <a href="#M000177" class="method-signature">
261
+ <a href="#M000201" class="method-signature">
262
262
  <span class="method-name">process_proc</span><span class="method-args">(proc_obj, context=nil, filename=nil)</span>
263
263
  </a>
264
264
  </div>
@@ -269,8 +269,8 @@ helper method evaluate Proc object with contect object. context may be
269
269
  Binding, Hash, or Object.
270
270
  </p>
271
271
  <p><a class="source-toggle" href="#"
272
- onclick="toggleCode('M000177-source');return false;">[Source]</a></p>
273
- <div class="method-source-code" id="M000177-source">
272
+ onclick="toggleCode('M000201-source');return false;">[Source]</a></p>
273
+ <div class="method-source-code" id="M000201-source">
274
274
  <pre>
275
275
  <span class="ruby-comment cmt"># File erubis/engine.rb, line 86</span>
276
276
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process_proc</span>(<span class="ruby-identifier">proc_obj</span>, <span class="ruby-identifier">context</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">filename</span>=<span class="ruby-keyword kw">nil</span>)
@@ -90,8 +90,8 @@ this is only for <a href="Eruby.html">Eruby</a>.
90
90
  <h3 class="section-bar">Methods</h3>
91
91
 
92
92
  <div class="name-list">
93
- <a href="#M000160">add_postamble</a>&nbsp;&nbsp;
94
- <a href="#M000159">add_preamble</a>&nbsp;&nbsp;
93
+ <a href="#M000184">add_postamble</a>&nbsp;&nbsp;
94
+ <a href="#M000183">add_preamble</a>&nbsp;&nbsp;
95
95
  </div>
96
96
  </div>
97
97
 
@@ -113,19 +113,19 @@ this is only for <a href="Eruby.html">Eruby</a>.
113
113
  <div id="methods">
114
114
  <h3 class="section-bar">Public Instance methods</h3>
115
115
 
116
- <div id="method-M000160" class="method-detail">
117
- <a name="M000160"></a>
116
+ <div id="method-M000184" class="method-detail">
117
+ <a name="M000184"></a>
118
118
 
119
119
  <div class="method-heading">
120
- <a href="#M000160" class="method-signature">
120
+ <a href="#M000184" class="method-signature">
121
121
  <span class="method-name">add_postamble</span><span class="method-args">(src)</span>
122
122
  </a>
123
123
  </div>
124
124
 
125
125
  <div class="method-description">
126
126
  <p><a class="source-toggle" href="#"
127
- onclick="toggleCode('M000160-source');return false;">[Source]</a></p>
128
- <div class="method-source-code" id="M000160-source">
127
+ onclick="toggleCode('M000184-source');return false;">[Source]</a></p>
128
+ <div class="method-source-code" id="M000184-source">
129
129
  <pre>
130
130
  <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 261</span>
131
131
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_postamble</span>(<span class="ruby-identifier">src</span>)
@@ -137,19 +137,19 @@ this is only for <a href="Eruby.html">Eruby</a>.
137
137
  </div>
138
138
  </div>
139
139
 
140
- <div id="method-M000159" class="method-detail">
141
- <a name="M000159"></a>
140
+ <div id="method-M000183" class="method-detail">
141
+ <a name="M000183"></a>
142
142
 
143
143
  <div class="method-heading">
144
- <a href="#M000159" class="method-signature">
144
+ <a href="#M000183" class="method-signature">
145
145
  <span class="method-name">add_preamble</span><span class="method-args">(src)</span>
146
146
  </a>
147
147
  </div>
148
148
 
149
149
  <div class="method-description">
150
150
  <p><a class="source-toggle" href="#"
151
- onclick="toggleCode('M000159-source');return false;">[Source]</a></p>
152
- <div class="method-source-code" id="M000159-source">
151
+ onclick="toggleCode('M000183-source');return false;">[Source]</a></p>
152
+ <div class="method-source-code" id="M000183-source">
153
153
  <pre>
154
154
  <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 257</span>
155
155
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_preamble</span>(<span class="ruby-identifier">src</span>)
@@ -98,7 +98,7 @@ this is language-indenedent.
98
98
  <h3 class="section-bar">Methods</h3>
99
99
 
100
100
  <div class="name-list">
101
- <a href="#M000101">add_expr</a>&nbsp;&nbsp;
101
+ <a href="#M000125">add_expr</a>&nbsp;&nbsp;
102
102
  </div>
103
103
  </div>
104
104
 
@@ -120,19 +120,19 @@ this is language-indenedent.
120
120
  <div id="methods">
121
121
  <h3 class="section-bar">Public Instance methods</h3>
122
122
 
123
- <div id="method-M000101" class="method-detail">
124
- <a name="M000101"></a>
123
+ <div id="method-M000125" class="method-detail">
124
+ <a name="M000125"></a>
125
125
 
126
126
  <div class="method-heading">
127
- <a href="#M000101" class="method-signature">
127
+ <a href="#M000125" class="method-signature">
128
128
  <span class="method-name">add_expr</span><span class="method-args">(src, code, indicator)</span>
129
129
  </a>
130
130
  </div>
131
131
 
132
132
  <div class="method-description">
133
133
  <p><a class="source-toggle" href="#"
134
- onclick="toggleCode('M000101-source');return false;">[Source]</a></p>
135
- <div class="method-source-code" id="M000101-source">
134
+ onclick="toggleCode('M000125-source');return false;">[Source]</a></p>
135
+ <div class="method-source-code" id="M000125-source">
136
136
  <pre>
137
137
  <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 38</span>
138
138
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_expr</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">code</span>, <span class="ruby-identifier">indicator</span>)
@@ -139,8 +139,8 @@ this is language-independent.
139
139
  <h3 class="section-bar">Methods</h3>
140
140
 
141
141
  <div class="name-list">
142
- <a href="#M000094">add_text</a>&nbsp;&nbsp;
143
- <a href="#M000095">convert</a>&nbsp;&nbsp;
142
+ <a href="#M000118">add_text</a>&nbsp;&nbsp;
143
+ <a href="#M000119">convert</a>&nbsp;&nbsp;
144
144
  </div>
145
145
  </div>
146
146
 
@@ -193,19 +193,19 @@ this is language-independent.
193
193
  <div id="methods">
194
194
  <h3 class="section-bar">Public Instance methods</h3>
195
195
 
196
- <div id="method-M000094" class="method-detail">
197
- <a name="M000094"></a>
196
+ <div id="method-M000118" class="method-detail">
197
+ <a name="M000118"></a>
198
198
 
199
199
  <div class="method-heading">
200
- <a href="#M000094" class="method-signature">
200
+ <a href="#M000118" class="method-signature">
201
201
  <span class="method-name">add_text</span><span class="method-args">(src, text)</span>
202
202
  </a>
203
203
  </div>
204
204
 
205
205
  <div class="method-description">
206
206
  <p><a class="source-toggle" href="#"
207
- onclick="toggleCode('M000094-source');return false;">[Source]</a></p>
208
- <div class="method-source-code" id="M000094-source">
207
+ onclick="toggleCode('M000118-source');return false;">[Source]</a></p>
208
+ <div class="method-source-code" id="M000118-source">
209
209
  <pre>
210
210
  <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 537</span>
211
211
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_text</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">text</span>)
@@ -225,19 +225,19 @@ this is language-independent.
225
225
  </div>
226
226
  </div>
227
227
 
228
- <div id="method-M000095" class="method-detail">
229
- <a name="M000095"></a>
228
+ <div id="method-M000119" class="method-detail">
229
+ <a name="M000119"></a>
230
230
 
231
231
  <div class="method-heading">
232
- <a href="#M000095" class="method-signature">
232
+ <a href="#M000119" class="method-signature">
233
233
  <span class="method-name">convert</span><span class="method-args">(input)</span>
234
234
  </a>
235
235
  </div>
236
236
 
237
237
  <div class="method-description">
238
238
  <p><a class="source-toggle" href="#"
239
- onclick="toggleCode('M000095-source');return false;">[Source]</a></p>
240
- <div class="method-source-code" id="M000095-source">
239
+ onclick="toggleCode('M000119-source');return false;">[Source]</a></p>
240
+ <div class="method-source-code" id="M000119-source">
241
241
  <pre>
242
242
  <span class="ruby-comment cmt"># File erubis/enhancer.rb, line 552</span>
243
243
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">convert</span>(<span class="ruby-identifier">input</span>)
@@ -55,6 +55,10 @@
55
55
  <tr class="top-aligned-row">
56
56
  <td><strong>In:</strong></td>
57
57
  <td>
58
+ <a href="../../files/erubis/helpers/rails_form_helper_rb.html">
59
+ erubis/helpers/rails_form_helper.rb
60
+ </a>
61
+ <br />
58
62
  <a href="../../files/erubis/helpers/rails_helper_rb.html">
59
63
  erubis/helpers/rails_helper.rb
60
64
  </a>
@@ -87,7 +91,8 @@
87
91
  <div id="class-list">
88
92
  <h3 class="section-bar">Classes and Modules</h3>
89
93
 
90
- Module <a href="Helpers/RailsHelper.html" class="link">Erubis::Helpers::RailsHelper</a><br />
94
+ Module <a href="Helpers/RailsFormHelper.html" class="link">Erubis::Helpers::RailsFormHelper</a><br />
95
+ Module <a href="Helpers/RailsHelper.html" class="link">Erubis::Helpers::RailsHelper</a><br />
91
96
 
92
97
  </div>
93
98
 
@@ -0,0 +1,762 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Module: Erubis::Helpers::RailsFormHelper</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Module</strong></td>
53
+ <td class="class-name-in-header">Erubis::Helpers::RailsFormHelper</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../../files/erubis/helpers/rails_form_helper_rb.html">
59
+ erubis/helpers/rails_form_helper.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ </table>
66
+ </div>
67
+ <!-- banner header -->
68
+
69
+ <div id="bodyContent">
70
+
71
+
72
+
73
+ <div id="contextContent">
74
+
75
+
76
+
77
+ </div>
78
+
79
+ <div id="method-list">
80
+ <h3 class="section-bar">Methods</h3>
81
+
82
+ <div class="name-list">
83
+ <a href="#M000101">_pp_check_box_checked?</a>&nbsp;&nbsp;
84
+ <a href="#M000091">_pp_error_tags</a>&nbsp;&nbsp;
85
+ <a href="#M000103">_pp_radio_button_checked?</a>&nbsp;&nbsp;
86
+ <a href="#M000092">_pp_remove_error_div</a>&nbsp;&nbsp;
87
+ <a href="#M000104">_pp_select</a>&nbsp;&nbsp;
88
+ <a href="#M000105">_pp_select_options</a>&nbsp;&nbsp;
89
+ <a href="#M000100">pp_check_box</a>&nbsp;&nbsp;
90
+ <a href="#M000107">pp_collection_select</a>&nbsp;&nbsp;
91
+ <a href="#M000108">pp_country_select</a>&nbsp;&nbsp;
92
+ <a href="#M000090">pp_error_on</a>&nbsp;&nbsp;
93
+ <a href="#M000098">pp_file_field</a>&nbsp;&nbsp;
94
+ <a href="#M000094">pp_form_tag</a>&nbsp;&nbsp;
95
+ <a href="#M000097">pp_hidden_field</a>&nbsp;&nbsp;
96
+ <a href="#M000111">pp_image_submit_tag</a>&nbsp;&nbsp;
97
+ <a href="#M000096">pp_password_field</a>&nbsp;&nbsp;
98
+ <a href="#M000102">pp_radio_button</a>&nbsp;&nbsp;
99
+ <a href="#M000089">pp_render_partial</a>&nbsp;&nbsp;
100
+ <a href="#M000106">pp_select</a>&nbsp;&nbsp;
101
+ <a href="#M000110">pp_submit_tag</a>&nbsp;&nbsp;
102
+ <a href="#M000093">pp_tag_helper</a>&nbsp;&nbsp;
103
+ <a href="#M000088">pp_template_filename</a>&nbsp;&nbsp;
104
+ <a href="#M000099">pp_text_area</a>&nbsp;&nbsp;
105
+ <a href="#M000095">pp_text_field</a>&nbsp;&nbsp;
106
+ <a href="#M000109">pp_time_zone_select</a>&nbsp;&nbsp;
107
+ </div>
108
+ </div>
109
+
110
+ </div>
111
+
112
+
113
+ <!-- if includes -->
114
+
115
+ <div id="section">
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+ <!-- if method_list -->
125
+ <div id="methods">
126
+ <h3 class="section-bar">Public Instance methods</h3>
127
+
128
+ <div id="method-M000101" class="method-detail">
129
+ <a name="M000101"></a>
130
+
131
+ <div class="method-heading">
132
+ <a href="#M000101" class="method-signature">
133
+ <span class="method-name">_pp_check_box_checked?</span><span class="method-args">(value, checked_value)</span>
134
+ </a>
135
+ </div>
136
+
137
+ <div class="method-description">
138
+ <p><a class="source-toggle" href="#"
139
+ onclick="toggleCode('M000101-source');return false;">[Source]</a></p>
140
+ <div class="method-source-code" id="M000101-source">
141
+ <pre>
142
+ <span class="ruby-comment cmt"># File erubis/helpers/rails_form_helper.rb, line 99</span>
143
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">_pp_check_box_checked?</span>(<span class="ruby-identifier">value</span>, <span class="ruby-identifier">checked_value</span>)
144
+ <span class="ruby-keyword kw">return</span> <span class="ruby-constant">ActionView</span><span class="ruby-operator">::</span><span class="ruby-constant">Helpers</span><span class="ruby-operator">::</span><span class="ruby-constant">InstanceTag</span><span class="ruby-operator">::</span><span class="ruby-identifier">check_box_checked?</span>(<span class="ruby-identifier">value</span>, <span class="ruby-identifier">checked_value</span>)
145
+ <span class="ruby-keyword kw">end</span>
146
+ </pre>
147
+ </div>
148
+ </div>
149
+ </div>
150
+
151
+ <div id="method-M000091" class="method-detail">
152
+ <a name="M000091"></a>
153
+
154
+ <div class="method-heading">
155
+ <a href="#M000091" class="method-signature">
156
+ <span class="method-name">_pp_error_tags</span><span class="method-args">(value)</span>
157
+ </a>
158
+ </div>
159
+
160
+ <div class="method-description">
161
+ <p><a class="source-toggle" href="#"
162
+ onclick="toggleCode('M000091-source');return false;">[Source]</a></p>
163
+ <div class="method-source-code" id="M000091-source">
164
+ <pre>
165
+ <span class="ruby-comment cmt"># File erubis/helpers/rails_form_helper.rb, line 39</span>
166
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">_pp_error_tags</span>(<span class="ruby-identifier">value</span>)
167
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">value</span> <span class="ruby-operator">?</span> [<span class="ruby-value str">'&lt;div class=&quot;fieldWithErrors&quot;&gt;'</span>, <span class="ruby-value str">'&lt;/div&gt;'</span>] <span class="ruby-operator">:</span> [<span class="ruby-value str">''</span>, <span class="ruby-value str">''</span>]
168
+ <span class="ruby-keyword kw">end</span>
169
+ </pre>
170
+ </div>
171
+ </div>
172
+ </div>
173
+
174
+ <div id="method-M000103" class="method-detail">
175
+ <a name="M000103"></a>
176
+
177
+ <div class="method-heading">
178
+ <a href="#M000103" class="method-signature">
179
+ <span class="method-name">_pp_radio_button_checked?</span><span class="method-args">(value, tag_value)</span>
180
+ </a>
181
+ </div>
182
+
183
+ <div class="method-description">
184
+ <p><a class="source-toggle" href="#"
185
+ onclick="toggleCode('M000103-source');return false;">[Source]</a></p>
186
+ <div class="method-source-code" id="M000103-source">
187
+ <pre>
188
+ <span class="ruby-comment cmt"># File erubis/helpers/rails_form_helper.rb, line 110</span>
189
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">_pp_radio_button_checked?</span>(<span class="ruby-identifier">value</span>, <span class="ruby-identifier">tag_value</span>)
190
+ <span class="ruby-keyword kw">return</span> <span class="ruby-constant">ActionView</span><span class="ruby-operator">::</span><span class="ruby-constant">Helpers</span><span class="ruby-operator">::</span><span class="ruby-constant">InstanceTag</span><span class="ruby-operator">::</span><span class="ruby-identifier">radio_button_checked?</span>(<span class="ruby-identifier">value</span>, <span class="ruby-identifier">tag_value</span>)
191
+ <span class="ruby-keyword kw">end</span>
192
+ </pre>
193
+ </div>
194
+ </div>
195
+ </div>
196
+
197
+ <div id="method-M000092" class="method-detail">
198
+ <a name="M000092"></a>
199
+
200
+ <div class="method-heading">
201
+ <a href="#M000092" class="method-signature">
202
+ <span class="method-name">_pp_remove_error_div</span><span class="method-args">(s)</span>
203
+ </a>
204
+ </div>
205
+
206
+ <div class="method-description">
207
+ <p><a class="source-toggle" href="#"
208
+ onclick="toggleCode('M000092-source');return false;">[Source]</a></p>
209
+ <div class="method-source-code" id="M000092-source">
210
+ <pre>
211
+ <span class="ruby-comment cmt"># File erubis/helpers/rails_form_helper.rb, line 43</span>
212
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">_pp_remove_error_div</span>(<span class="ruby-identifier">s</span>)
213
+ <span class="ruby-identifier">s</span>.<span class="ruby-identifier">sub!</span>(<span class="ruby-regexp re">/\A&lt;div class=&quot;fieldWithErrors&quot;&gt;(.*)&lt;\/div&gt;\z/</span>, <span class="ruby-value str">'\1'</span>)
214
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">s</span>
215
+ <span class="ruby-keyword kw">end</span>
216
+ </pre>
217
+ </div>
218
+ </div>
219
+ </div>
220
+
221
+ <div id="method-M000104" class="method-detail">
222
+ <a name="M000104"></a>
223
+
224
+ <div class="method-heading">
225
+ <a href="#M000104" class="method-signature">
226
+ <span class="method-name">_pp_select</span><span class="method-args">(object, method, collection, priority_collection, options={}, html_options={})</span>
227
+ </a>
228
+ </div>
229
+
230
+ <div class="method-description">
231
+ <p><a class="source-toggle" href="#"
232
+ onclick="toggleCode('M000104-source');return false;">[Source]</a></p>
233
+ <div class="method-source-code" id="M000104-source">
234
+ <pre>
235
+ <span class="ruby-comment cmt"># File erubis/helpers/rails_form_helper.rb, line 114</span>
236
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">_pp_select</span>(<span class="ruby-identifier">object</span>, <span class="ruby-identifier">method</span>, <span class="ruby-identifier">collection</span>, <span class="ruby-identifier">priority_collection</span>, <span class="ruby-identifier">options</span>={}, <span class="ruby-identifier">html_options</span>={})
237
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">pp_error_on</span>(<span class="ruby-identifier">object</span>, <span class="ruby-identifier">method</span>) <span class="ruby-keyword kw">do</span>
238
+ <span class="ruby-identifier">s</span> = <span class="ruby-value str">&quot;&quot;</span>
239
+ <span class="ruby-comment cmt">## start tag</span>
240
+ <span class="ruby-identifier">s</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;&lt;select id=\&quot;#{object}_#{method}\&quot; name=\&quot;#{object}[#{method}]\&quot;&quot;</span>
241
+ <span class="ruby-keyword kw">for</span> <span class="ruby-identifier">key</span>, <span class="ruby-identifier">val</span> <span class="ruby-keyword kw">in</span> <span class="ruby-identifier">html_options</span><span class="ruby-operator">:</span>
242
+ <span class="ruby-identifier">s</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot; #{key}=\&quot;#{val}\&quot;&quot;</span>
243
+ <span class="ruby-keyword kw">end</span>
244
+ <span class="ruby-identifier">s</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;&gt;\n&quot;</span>
245
+ <span class="ruby-comment cmt">## selected table</span>
246
+ <span class="ruby-identifier">key</span> = <span class="ruby-identifier">options</span>.<span class="ruby-identifier">key?</span>(<span class="ruby-identifier">:value</span>) <span class="ruby-operator">?</span> <span class="ruby-identifier">:value</span> <span class="ruby-operator">:</span> (<span class="ruby-identifier">options</span>.<span class="ruby-identifier">key?</span>(<span class="ruby-value str">'value'</span>) <span class="ruby-operator">?</span> <span class="ruby-value str">'value'</span> <span class="ruby-operator">:</span> <span class="ruby-keyword kw">nil</span>)
247
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">key</span>.<span class="ruby-identifier">nil?</span> ; <span class="ruby-identifier">selected</span> = <span class="ruby-node">&quot;@#{object}.#{method}&quot;</span>
248
+ <span class="ruby-keyword kw">elsif</span> (<span class="ruby-identifier">val</span>=<span class="ruby-identifier">options</span>[<span class="ruby-identifier">key</span>]).<span class="ruby-identifier">nil?</span> ; <span class="ruby-identifier">selected</span> = <span class="ruby-keyword kw">nil</span>
249
+ <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">val</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/\A&lt;%=(.*)%&gt;\z/</span> ; <span class="ruby-identifier">selected</span> = <span class="ruby-identifier">$1</span>
250
+ <span class="ruby-keyword kw">else</span> ; <span class="ruby-identifier">selected</span> = <span class="ruby-identifier">val</span>.<span class="ruby-identifier">inspect</span>
251
+ <span class="ruby-keyword kw">end</span>
252
+ <span class="ruby-identifier">s</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;&lt;% _table = {#{selected}=&gt;' selected=\&quot;selected\&quot;'} %&gt;\n&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">selected</span>
253
+ <span class="ruby-comment cmt">## &lt;option&gt; tags</span>
254
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:include_blank</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">options</span>[<span class="ruby-value str">'include_blank'</span>]
255
+ <span class="ruby-identifier">s</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;&lt;option value=\&quot;\&quot;&gt;&lt;/option&gt;\n&quot;</span>
256
+ <span class="ruby-keyword kw">end</span>
257
+ <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">priority_collection</span>.<span class="ruby-identifier">blank?</span>
258
+ <span class="ruby-identifier">_pp_select_options</span>(<span class="ruby-identifier">s</span>, <span class="ruby-identifier">priority_collection</span>, <span class="ruby-identifier">selected</span>, <span class="ruby-value str">'delete'</span>)
259
+ <span class="ruby-identifier">s</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;&lt;option value=\&quot;\&quot;&gt;-------------&lt;/option&gt;\n&quot;</span>
260
+ <span class="ruby-keyword kw">end</span>
261
+ <span class="ruby-identifier">_pp_select_options</span>(<span class="ruby-identifier">s</span>, <span class="ruby-identifier">collection</span>, <span class="ruby-identifier">selected</span>, <span class="ruby-value str">'[]'</span>)
262
+ <span class="ruby-comment cmt">## end tag</span>
263
+ <span class="ruby-identifier">s</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;&lt;/select&gt;&quot;</span>
264
+ <span class="ruby-identifier">s</span>
265
+ <span class="ruby-keyword kw">end</span>
266
+ <span class="ruby-keyword kw">end</span>
267
+ </pre>
268
+ </div>
269
+ </div>
270
+ </div>
271
+
272
+ <div id="method-M000105" class="method-detail">
273
+ <a name="M000105"></a>
274
+
275
+ <div class="method-heading">
276
+ <a href="#M000105" class="method-signature">
277
+ <span class="method-name">_pp_select_options</span><span class="method-args">(s, collection, selected, operator)</span>
278
+ </a>
279
+ </div>
280
+
281
+ <div class="method-description">
282
+ <p><a class="source-toggle" href="#"
283
+ onclick="toggleCode('M000105-source');return false;">[Source]</a></p>
284
+ <div class="method-source-code" id="M000105-source">
285
+ <pre>
286
+ <span class="ruby-comment cmt"># File erubis/helpers/rails_form_helper.rb, line 146</span>
287
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">_pp_select_options</span>(<span class="ruby-identifier">s</span>, <span class="ruby-identifier">collection</span>, <span class="ruby-identifier">selected</span>, <span class="ruby-identifier">operator</span>)
288
+ <span class="ruby-keyword kw">for</span> <span class="ruby-identifier">item</span> <span class="ruby-keyword kw">in</span> <span class="ruby-identifier">collection</span>
289
+ <span class="ruby-identifier">value</span>, <span class="ruby-identifier">text</span> = <span class="ruby-identifier">item</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Array</span>) <span class="ruby-operator">?</span> <span class="ruby-identifier">item</span> <span class="ruby-operator">:</span> [<span class="ruby-identifier">item</span>, <span class="ruby-identifier">item</span>]
290
+ <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">selected</span>
291
+ <span class="ruby-identifier">t</span> = <span class="ruby-value str">''</span>
292
+ <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">operator</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'delete'</span>
293
+ <span class="ruby-identifier">t</span> = <span class="ruby-node">&quot;&lt;%= _table.delete(#{value.inspect}) %&gt;&quot;</span>
294
+ <span class="ruby-keyword kw">else</span>
295
+ <span class="ruby-identifier">t</span> = <span class="ruby-node">&quot;&lt;%= _table[#{value.inspect}] %&gt;&quot;</span>
296
+ <span class="ruby-keyword kw">end</span>
297
+ <span class="ruby-identifier">s</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;&lt;option value=\&quot;#{h value}\&quot;#{t}&gt;#{h text}&lt;/option&gt;\n&quot;</span>
298
+ <span class="ruby-keyword kw">end</span>
299
+ <span class="ruby-keyword kw">end</span>
300
+ </pre>
301
+ </div>
302
+ </div>
303
+ </div>
304
+
305
+ <div id="method-M000100" class="method-detail">
306
+ <a name="M000100"></a>
307
+
308
+ <div class="method-heading">
309
+ <a href="#M000100" class="method-signature">
310
+ <span class="method-name">pp_check_box</span><span class="method-args">(object_name, method, options={}, checked_value=&quot;1&quot;, unchecked_value=&quot;0&quot;)</span>
311
+ </a>
312
+ </div>
313
+
314
+ <div class="method-description">
315
+ <p><a class="source-toggle" href="#"
316
+ onclick="toggleCode('M000100-source');return false;">[Source]</a></p>
317
+ <div class="method-source-code" id="M000100-source">
318
+ <pre>
319
+ <span class="ruby-comment cmt"># File erubis/helpers/rails_form_helper.rb, line 92</span>
320
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pp_check_box</span>(<span class="ruby-identifier">object_name</span>, <span class="ruby-identifier">method</span>, <span class="ruby-identifier">options</span>={}, <span class="ruby-identifier">checked_value</span>=<span class="ruby-value str">&quot;1&quot;</span>, <span class="ruby-identifier">unchecked_value</span>=<span class="ruby-value str">&quot;0&quot;</span>)
321
+ <span class="ruby-identifier">s</span> = <span class="ruby-identifier">check_box</span>(<span class="ruby-identifier">object_name</span>, <span class="ruby-identifier">method</span>, <span class="ruby-identifier">options</span>, <span class="ruby-identifier">checked_value</span>, <span class="ruby-identifier">unchecked_value</span>)
322
+ <span class="ruby-identifier">s</span>.<span class="ruby-identifier">sub!</span>(<span class="ruby-regexp re">/\schecked=\&quot;checked\&quot;/</span>, <span class="ruby-value str">''</span>)
323
+ <span class="ruby-identifier">s</span>.<span class="ruby-identifier">sub!</span>(<span class="ruby-regexp re">/type=&quot;checkbox&quot;/</span>, <span class="ruby-node">&quot;\\&amp;&lt;%= _pp_check_box_checked?(@#{object_name}.#{method}, #{checked_value.inspect}) ? ' checked=\&quot;checked\&quot;' : '' %&gt;&quot;</span>)
324
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">pp_error_on</span>(<span class="ruby-identifier">object_name</span>, <span class="ruby-identifier">method</span>) { <span class="ruby-identifier">_pp_remove_error_div</span>(<span class="ruby-identifier">s</span>) }
325
+ <span class="ruby-keyword kw">end</span>
326
+ </pre>
327
+ </div>
328
+ </div>
329
+ </div>
330
+
331
+ <div id="method-M000107" class="method-detail">
332
+ <a name="M000107"></a>
333
+
334
+ <div class="method-heading">
335
+ <a href="#M000107" class="method-signature">
336
+ <span class="method-name">pp_collection_select</span><span class="method-args">(object, method, collection, value_method, text_method, options={}, html_options={})</span>
337
+ </a>
338
+ </div>
339
+
340
+ <div class="method-description">
341
+ <p><a class="source-toggle" href="#"
342
+ onclick="toggleCode('M000107-source');return false;">[Source]</a></p>
343
+ <div class="method-source-code" id="M000107-source">
344
+ <pre>
345
+ <span class="ruby-comment cmt"># File erubis/helpers/rails_form_helper.rb, line 164</span>
346
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pp_collection_select</span>(<span class="ruby-identifier">object</span>, <span class="ruby-identifier">method</span>, <span class="ruby-identifier">collection</span>, <span class="ruby-identifier">value_method</span>, <span class="ruby-identifier">text_method</span>, <span class="ruby-identifier">options</span>={}, <span class="ruby-identifier">html_options</span>={})
347
+ <span class="ruby-identifier">collection2</span> = <span class="ruby-identifier">collection</span>.<span class="ruby-identifier">collect</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">e</span><span class="ruby-operator">|</span>
348
+ [<span class="ruby-identifier">e</span>.<span class="ruby-identifier">__send__</span>(<span class="ruby-identifier">value_method</span>), <span class="ruby-identifier">e</span>.<span class="ruby-identifier">__send__</span>(<span class="ruby-identifier">text_method</span>)]
349
+ }
350
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">_pp_select</span>(<span class="ruby-identifier">object</span>, <span class="ruby-identifier">method</span>, <span class="ruby-identifier">collection2</span>, <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">options</span>, <span class="ruby-identifier">html_options</span>)
351
+ <span class="ruby-keyword kw">end</span>
352
+ </pre>
353
+ </div>
354
+ </div>
355
+ </div>
356
+
357
+ <div id="method-M000108" class="method-detail">
358
+ <a name="M000108"></a>
359
+
360
+ <div class="method-heading">
361
+ <a href="#M000108" class="method-signature">
362
+ <span class="method-name">pp_country_select</span><span class="method-args">(object, method, priority_countries=nil, options={}, html_options={})</span>
363
+ </a>
364
+ </div>
365
+
366
+ <div class="method-description">
367
+ <p><a class="source-toggle" href="#"
368
+ onclick="toggleCode('M000108-source');return false;">[Source]</a></p>
369
+ <div class="method-source-code" id="M000108-source">
370
+ <pre>
371
+ <span class="ruby-comment cmt"># File erubis/helpers/rails_form_helper.rb, line 171</span>
372
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pp_country_select</span>(<span class="ruby-identifier">object</span>, <span class="ruby-identifier">method</span>, <span class="ruby-identifier">priority_countries</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">options</span>={}, <span class="ruby-identifier">html_options</span>={})
373
+ <span class="ruby-identifier">collection</span> = <span class="ruby-constant">ActionView</span><span class="ruby-operator">::</span><span class="ruby-constant">Helpers</span><span class="ruby-operator">::</span><span class="ruby-constant">FormOptionsHelper</span><span class="ruby-operator">::</span><span class="ruby-constant">COUNTRIES</span>
374
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">_pp_select</span>(<span class="ruby-identifier">object</span>, <span class="ruby-identifier">method</span>, <span class="ruby-identifier">collection</span>, <span class="ruby-identifier">priority_countries</span>, <span class="ruby-identifier">options</span>, <span class="ruby-identifier">html_options</span>)
375
+ <span class="ruby-keyword kw">end</span>
376
+ </pre>
377
+ </div>
378
+ </div>
379
+ </div>
380
+
381
+ <div id="method-M000090" class="method-detail">
382
+ <a name="M000090"></a>
383
+
384
+ <div class="method-heading">
385
+ <a href="#M000090" class="method-signature">
386
+ <span class="method-name">pp_error_on</span><span class="method-args">(object_name, method) {|object_name, method| ...}</span>
387
+ </a>
388
+ </div>
389
+
390
+ <div class="method-description">
391
+ <p><a class="source-toggle" href="#"
392
+ onclick="toggleCode('M000090-source');return false;">[Source]</a></p>
393
+ <div class="method-source-code" id="M000090-source">
394
+ <pre>
395
+ <span class="ruby-comment cmt"># File erubis/helpers/rails_form_helper.rb, line 30</span>
396
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pp_error_on</span>(<span class="ruby-identifier">object_name</span>, <span class="ruby-identifier">method</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
397
+ <span class="ruby-identifier">s</span> = <span class="ruby-value str">''</span>
398
+ <span class="ruby-identifier">s</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;&lt;% _stag, _etag = _pp_error_tags(@#{object_name}.errors.on('#{method}'))%&gt;&quot;</span>
399
+ <span class="ruby-identifier">s</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;&lt;%=_stag%&gt;&quot;</span>
400
+ <span class="ruby-identifier">s</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-keyword kw">yield</span>(<span class="ruby-identifier">object_name</span>, <span class="ruby-identifier">method</span>)
401
+ <span class="ruby-identifier">s</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;&lt;%=_etag%&gt;&quot;</span>
402
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">s</span>
403
+ <span class="ruby-keyword kw">end</span>
404
+ </pre>
405
+ </div>
406
+ </div>
407
+ </div>
408
+
409
+ <div id="method-M000098" class="method-detail">
410
+ <a name="M000098"></a>
411
+
412
+ <div class="method-heading">
413
+ <a href="#M000098" class="method-signature">
414
+ <span class="method-name">pp_file_field</span><span class="method-args">(object_name, method, options={})</span>
415
+ </a>
416
+ </div>
417
+
418
+ <div class="method-description">
419
+ <p><a class="source-toggle" href="#"
420
+ onclick="toggleCode('M000098-source');return false;">[Source]</a></p>
421
+ <div class="method-source-code" id="M000098-source">
422
+ <pre>
423
+ <span class="ruby-comment cmt"># File erubis/helpers/rails_form_helper.rb, line 84</span>
424
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pp_file_field</span>(<span class="ruby-identifier">object_name</span>, <span class="ruby-identifier">method</span>, <span class="ruby-identifier">options</span>={})
425
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">pp_tag_helper</span>(<span class="ruby-identifier">:file_field</span>, <span class="ruby-identifier">object_name</span>, <span class="ruby-identifier">method</span>, <span class="ruby-identifier">options</span>)
426
+ <span class="ruby-keyword kw">end</span>
427
+ </pre>
428
+ </div>
429
+ </div>
430
+ </div>
431
+
432
+ <div id="method-M000094" class="method-detail">
433
+ <a name="M000094"></a>
434
+
435
+ <div class="method-heading">
436
+ <a href="#M000094" class="method-signature">
437
+ <span class="method-name">pp_form_tag</span><span class="method-args">(url_for_options={}, options={}, *parameters_for_url, &amp;block)</span>
438
+ </a>
439
+ </div>
440
+
441
+ <div class="method-description">
442
+ <p><a class="source-toggle" href="#"
443
+ onclick="toggleCode('M000094-source');return false;">[Source]</a></p>
444
+ <div class="method-source-code" id="M000094-source">
445
+ <pre>
446
+ <span class="ruby-comment cmt"># File erubis/helpers/rails_form_helper.rb, line 62</span>
447
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pp_form_tag</span>(<span class="ruby-identifier">url_for_options</span>={}, <span class="ruby-identifier">options</span>={}, <span class="ruby-operator">*</span><span class="ruby-identifier">parameters_for_url</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
448
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">form_tag</span>(<span class="ruby-identifier">url_for_options</span>, <span class="ruby-identifier">options</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">parameters_for_url</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
449
+ <span class="ruby-keyword kw">end</span>
450
+ </pre>
451
+ </div>
452
+ </div>
453
+ </div>
454
+
455
+ <div id="method-M000097" class="method-detail">
456
+ <a name="M000097"></a>
457
+
458
+ <div class="method-heading">
459
+ <a href="#M000097" class="method-signature">
460
+ <span class="method-name">pp_hidden_field</span><span class="method-args">(object_name, method, options={})</span>
461
+ </a>
462
+ </div>
463
+
464
+ <div class="method-description">
465
+ <p><a class="source-toggle" href="#"
466
+ onclick="toggleCode('M000097-source');return false;">[Source]</a></p>
467
+ <div class="method-source-code" id="M000097-source">
468
+ <pre>
469
+ <span class="ruby-comment cmt"># File erubis/helpers/rails_form_helper.rb, line 80</span>
470
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pp_hidden_field</span>(<span class="ruby-identifier">object_name</span>, <span class="ruby-identifier">method</span>, <span class="ruby-identifier">options</span>={})
471
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">pp_tag_helper</span>(<span class="ruby-identifier">:hidden_field</span>, <span class="ruby-identifier">object_name</span>, <span class="ruby-identifier">method</span>, <span class="ruby-identifier">options</span>)
472
+ <span class="ruby-keyword kw">end</span>
473
+ </pre>
474
+ </div>
475
+ </div>
476
+ </div>
477
+
478
+ <div id="method-M000111" class="method-detail">
479
+ <a name="M000111"></a>
480
+
481
+ <div class="method-heading">
482
+ <a href="#M000111" class="method-signature">
483
+ <span class="method-name">pp_image_submit_tag</span><span class="method-args">(source, options={})</span>
484
+ </a>
485
+ </div>
486
+
487
+ <div class="method-description">
488
+ <p><a class="source-toggle" href="#"
489
+ onclick="toggleCode('M000111-source');return false;">[Source]</a></p>
490
+ <div class="method-source-code" id="M000111-source">
491
+ <pre>
492
+ <span class="ruby-comment cmt"># File erubis/helpers/rails_form_helper.rb, line 186</span>
493
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pp_image_submit_tag</span>(<span class="ruby-identifier">source</span>, <span class="ruby-identifier">options</span>={})
494
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">image_submit_tag</span>(<span class="ruby-identifier">source</span>, <span class="ruby-identifier">options</span>)
495
+ <span class="ruby-keyword kw">end</span>
496
+ </pre>
497
+ </div>
498
+ </div>
499
+ </div>
500
+
501
+ <div id="method-M000096" class="method-detail">
502
+ <a name="M000096"></a>
503
+
504
+ <div class="method-heading">
505
+ <a href="#M000096" class="method-signature">
506
+ <span class="method-name">pp_password_field</span><span class="method-args">(object_name, method, options={})</span>
507
+ </a>
508
+ </div>
509
+
510
+ <div class="method-description">
511
+ <p><a class="source-toggle" href="#"
512
+ onclick="toggleCode('M000096-source');return false;">[Source]</a></p>
513
+ <div class="method-source-code" id="M000096-source">
514
+ <pre>
515
+ <span class="ruby-comment cmt"># File erubis/helpers/rails_form_helper.rb, line 76</span>
516
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pp_password_field</span>(<span class="ruby-identifier">object_name</span>, <span class="ruby-identifier">method</span>, <span class="ruby-identifier">options</span>={})
517
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">pp_tag_helper</span>(<span class="ruby-identifier">:password_field</span>, <span class="ruby-identifier">object_name</span>, <span class="ruby-identifier">method</span>, <span class="ruby-identifier">options</span>)
518
+ <span class="ruby-keyword kw">end</span>
519
+ </pre>
520
+ </div>
521
+ </div>
522
+ </div>
523
+
524
+ <div id="method-M000102" class="method-detail">
525
+ <a name="M000102"></a>
526
+
527
+ <div class="method-heading">
528
+ <a href="#M000102" class="method-signature">
529
+ <span class="method-name">pp_radio_button</span><span class="method-args">(object_name, method, tag_value, options={})</span>
530
+ </a>
531
+ </div>
532
+
533
+ <div class="method-description">
534
+ <p><a class="source-toggle" href="#"
535
+ onclick="toggleCode('M000102-source');return false;">[Source]</a></p>
536
+ <div class="method-source-code" id="M000102-source">
537
+ <pre>
538
+ <span class="ruby-comment cmt"># File erubis/helpers/rails_form_helper.rb, line 103</span>
539
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pp_radio_button</span>(<span class="ruby-identifier">object_name</span>, <span class="ruby-identifier">method</span>, <span class="ruby-identifier">tag_value</span>, <span class="ruby-identifier">options</span>={})
540
+ <span class="ruby-identifier">s</span> = <span class="ruby-identifier">radio_button</span>(<span class="ruby-identifier">object_name</span>, <span class="ruby-identifier">method</span>, <span class="ruby-identifier">tag_value</span>, <span class="ruby-identifier">options</span>)
541
+ <span class="ruby-identifier">s</span>.<span class="ruby-identifier">sub!</span>(<span class="ruby-regexp re">/\schecked=\&quot;checked\&quot;/</span>, <span class="ruby-value str">''</span>)
542
+ <span class="ruby-identifier">s</span>.<span class="ruby-identifier">sub!</span>(<span class="ruby-regexp re">/type=&quot;radio&quot;/</span>, <span class="ruby-node">&quot;\\&amp;&lt;%= _pp_radio_button_checked?(@#{object_name}.#{method}, #{tag_value.inspect}) ? ' checked=\&quot;checked\&quot;' : '' %&gt;&quot;</span>)
543
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">pp_error_on</span>(<span class="ruby-identifier">object_name</span>, <span class="ruby-identifier">method</span>) { <span class="ruby-identifier">_pp_remove_error_div</span>(<span class="ruby-identifier">s</span>) }
544
+ <span class="ruby-keyword kw">end</span>
545
+ </pre>
546
+ </div>
547
+ </div>
548
+ </div>
549
+
550
+ <div id="method-M000089" class="method-detail">
551
+ <a name="M000089"></a>
552
+
553
+ <div class="method-heading">
554
+ <a href="#M000089" class="method-signature">
555
+ <span class="method-name">pp_render_partial</span><span class="method-args">(basename)</span>
556
+ </a>
557
+ </div>
558
+
559
+ <div class="method-description">
560
+ <p><a class="source-toggle" href="#"
561
+ onclick="toggleCode('M000089-source');return false;">[Source]</a></p>
562
+ <div class="method-source-code" id="M000089-source">
563
+ <pre>
564
+ <span class="ruby-comment cmt"># File erubis/helpers/rails_form_helper.rb, line 22</span>
565
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pp_render_partial</span>(<span class="ruby-identifier">basename</span>)
566
+ <span class="ruby-identifier">basename</span> = <span class="ruby-node">&quot;_#{basename}&quot;</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">basename</span>[<span class="ruby-value">0</span>] <span class="ruby-operator">==</span> <span class="ruby-value">?_</span>
567
+ <span class="ruby-identifier">filename</span> = <span class="ruby-identifier">pp_template_filename</span>(<span class="ruby-identifier">basename</span>)
568
+ <span class="ruby-identifier">klass</span> = <span class="ruby-constant">Erubis</span><span class="ruby-operator">::</span><span class="ruby-constant">Helpers</span><span class="ruby-operator">::</span><span class="ruby-constant">RailsHelper</span><span class="ruby-operator">::</span><span class="ruby-constant">PreprocessingEruby</span>
569
+ <span class="ruby-identifier">eruby</span> = <span class="ruby-identifier">klass</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-identifier">filename</span>))
570
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">eruby</span>.<span class="ruby-identifier">evaluate</span>(<span class="ruby-keyword kw">self</span>)
571
+ <span class="ruby-keyword kw">end</span>
572
+ </pre>
573
+ </div>
574
+ </div>
575
+ </div>
576
+
577
+ <div id="method-M000106" class="method-detail">
578
+ <a name="M000106"></a>
579
+
580
+ <div class="method-heading">
581
+ <a href="#M000106" class="method-signature">
582
+ <span class="method-name">pp_select</span><span class="method-args">(object, method, collection, options={}, html_options={})</span>
583
+ </a>
584
+ </div>
585
+
586
+ <div class="method-description">
587
+ <p><a class="source-toggle" href="#"
588
+ onclick="toggleCode('M000106-source');return false;">[Source]</a></p>
589
+ <div class="method-source-code" id="M000106-source">
590
+ <pre>
591
+ <span class="ruby-comment cmt"># File erubis/helpers/rails_form_helper.rb, line 160</span>
592
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pp_select</span>(<span class="ruby-identifier">object</span>, <span class="ruby-identifier">method</span>, <span class="ruby-identifier">collection</span>, <span class="ruby-identifier">options</span>={}, <span class="ruby-identifier">html_options</span>={})
593
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">_pp_select</span>(<span class="ruby-identifier">object</span>, <span class="ruby-identifier">method</span>, <span class="ruby-identifier">collection</span>, <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">options</span>, <span class="ruby-identifier">html_options</span>)
594
+ <span class="ruby-keyword kw">end</span>
595
+ </pre>
596
+ </div>
597
+ </div>
598
+ </div>
599
+
600
+ <div id="method-M000110" class="method-detail">
601
+ <a name="M000110"></a>
602
+
603
+ <div class="method-heading">
604
+ <a href="#M000110" class="method-signature">
605
+ <span class="method-name">pp_submit_tag</span><span class="method-args">(value=&quot;Save changes&quot;, options={})</span>
606
+ </a>
607
+ </div>
608
+
609
+ <div class="method-description">
610
+ <p><a class="source-toggle" href="#"
611
+ onclick="toggleCode('M000110-source');return false;">[Source]</a></p>
612
+ <div class="method-source-code" id="M000110-source">
613
+ <pre>
614
+ <span class="ruby-comment cmt"># File erubis/helpers/rails_form_helper.rb, line 182</span>
615
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pp_submit_tag</span>(<span class="ruby-identifier">value</span>=<span class="ruby-value str">&quot;Save changes&quot;</span>, <span class="ruby-identifier">options</span>={})
616
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">submit_tag</span>(<span class="ruby-identifier">value</span>, <span class="ruby-identifier">options</span>)
617
+ <span class="ruby-keyword kw">end</span>
618
+ </pre>
619
+ </div>
620
+ </div>
621
+ </div>
622
+
623
+ <div id="method-M000093" class="method-detail">
624
+ <a name="M000093"></a>
625
+
626
+ <div class="method-heading">
627
+ <a href="#M000093" class="method-signature">
628
+ <span class="method-name">pp_tag_helper</span><span class="method-args">(helper, object_name, method, options={})</span>
629
+ </a>
630
+ </div>
631
+
632
+ <div class="method-description">
633
+ <p><a class="source-toggle" href="#"
634
+ onclick="toggleCode('M000093-source');return false;">[Source]</a></p>
635
+ <div class="method-source-code" id="M000093-source">
636
+ <pre>
637
+ <span class="ruby-comment cmt"># File erubis/helpers/rails_form_helper.rb, line 48</span>
638
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pp_tag_helper</span>(<span class="ruby-identifier">helper</span>, <span class="ruby-identifier">object_name</span>, <span class="ruby-identifier">method</span>, <span class="ruby-identifier">options</span>={})
639
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">object_name</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">ActionView</span><span class="ruby-operator">::</span><span class="ruby-constant">Helpers</span><span class="ruby-operator">::</span><span class="ruby-constant">FormHelper</span>)
640
+ <span class="ruby-identifier">object_name</span> = <span class="ruby-identifier">object_name</span>.<span class="ruby-identifier">object_name</span>
641
+ <span class="ruby-keyword kw">end</span>
642
+ <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">options</span>.<span class="ruby-identifier">key?</span>(<span class="ruby-identifier">:value</span>) <span class="ruby-operator">||</span> <span class="ruby-identifier">options</span>.<span class="ruby-identifier">key?</span>(<span class="ruby-value str">'value'</span>)
643
+ <span class="ruby-identifier">options</span>[<span class="ruby-value str">'value'</span>] = <span class="ruby-identifier">_?</span>(<span class="ruby-node">&quot;h @#{object_name}.#{method}&quot;</span>)
644
+ <span class="ruby-keyword kw">end</span>
645
+ <span class="ruby-identifier">$stderr</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;*** debug: pp_tag_helper(): options=#{options.inspect}&quot;</span>
646
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">pp_error_on</span>(<span class="ruby-identifier">object_name</span>, <span class="ruby-identifier">method</span>) {
647
+ <span class="ruby-identifier">s</span> = <span class="ruby-identifier">__send__</span>(<span class="ruby-identifier">helper</span>, <span class="ruby-identifier">object_name</span>, <span class="ruby-identifier">method</span>, <span class="ruby-identifier">options</span>)
648
+ <span class="ruby-identifier">_pp_remove_error_div</span>(<span class="ruby-identifier">s</span>)
649
+ }
650
+ <span class="ruby-keyword kw">end</span>
651
+ </pre>
652
+ </div>
653
+ </div>
654
+ </div>
655
+
656
+ <div id="method-M000088" class="method-detail">
657
+ <a name="M000088"></a>
658
+
659
+ <div class="method-heading">
660
+ <a href="#M000088" class="method-signature">
661
+ <span class="method-name">pp_template_filename</span><span class="method-args">(basename)</span>
662
+ </a>
663
+ </div>
664
+
665
+ <div class="method-description">
666
+ <p><a class="source-toggle" href="#"
667
+ onclick="toggleCode('M000088-source');return false;">[Source]</a></p>
668
+ <div class="method-source-code" id="M000088-source">
669
+ <pre>
670
+ <span class="ruby-comment cmt"># File erubis/helpers/rails_form_helper.rb, line 18</span>
671
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pp_template_filename</span>(<span class="ruby-identifier">basename</span>)
672
+ <span class="ruby-keyword kw">return</span> <span class="ruby-node">&quot;#{RAILS_ROOT}/app/views/#{controller.controller_name}/#{basename}.rhtml&quot;</span>
673
+ <span class="ruby-keyword kw">end</span>
674
+ </pre>
675
+ </div>
676
+ </div>
677
+ </div>
678
+
679
+ <div id="method-M000099" class="method-detail">
680
+ <a name="M000099"></a>
681
+
682
+ <div class="method-heading">
683
+ <a href="#M000099" class="method-signature">
684
+ <span class="method-name">pp_text_area</span><span class="method-args">(object_name, method, options={})</span>
685
+ </a>
686
+ </div>
687
+
688
+ <div class="method-description">
689
+ <p><a class="source-toggle" href="#"
690
+ onclick="toggleCode('M000099-source');return false;">[Source]</a></p>
691
+ <div class="method-source-code" id="M000099-source">
692
+ <pre>
693
+ <span class="ruby-comment cmt"># File erubis/helpers/rails_form_helper.rb, line 88</span>
694
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pp_text_area</span>(<span class="ruby-identifier">object_name</span>, <span class="ruby-identifier">method</span>, <span class="ruby-identifier">options</span>={})
695
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">pp_tag_helper</span>(<span class="ruby-identifier">:text_area</span>, <span class="ruby-identifier">object_name</span>, <span class="ruby-identifier">method</span>, <span class="ruby-identifier">options</span>)
696
+ <span class="ruby-keyword kw">end</span>
697
+ </pre>
698
+ </div>
699
+ </div>
700
+ </div>
701
+
702
+ <div id="method-M000095" class="method-detail">
703
+ <a name="M000095"></a>
704
+
705
+ <div class="method-heading">
706
+ <a href="#M000095" class="method-signature">
707
+ <span class="method-name">pp_text_field</span><span class="method-args">(object_name, method, options={})</span>
708
+ </a>
709
+ </div>
710
+
711
+ <div class="method-description">
712
+ <p><a class="source-toggle" href="#"
713
+ onclick="toggleCode('M000095-source');return false;">[Source]</a></p>
714
+ <div class="method-source-code" id="M000095-source">
715
+ <pre>
716
+ <span class="ruby-comment cmt"># File erubis/helpers/rails_form_helper.rb, line 72</span>
717
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pp_text_field</span>(<span class="ruby-identifier">object_name</span>, <span class="ruby-identifier">method</span>, <span class="ruby-identifier">options</span>={})
718
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">pp_tag_helper</span>(<span class="ruby-identifier">:text_field</span>, <span class="ruby-identifier">object_name</span>, <span class="ruby-identifier">method</span>, <span class="ruby-identifier">options</span>)
719
+ <span class="ruby-keyword kw">end</span>
720
+ </pre>
721
+ </div>
722
+ </div>
723
+ </div>
724
+
725
+ <div id="method-M000109" class="method-detail">
726
+ <a name="M000109"></a>
727
+
728
+ <div class="method-heading">
729
+ <a href="#M000109" class="method-signature">
730
+ <span class="method-name">pp_time_zone_select</span><span class="method-args">(object, method, priority_zones=nil, options={}, html_options={})</span>
731
+ </a>
732
+ </div>
733
+
734
+ <div class="method-description">
735
+ <p><a class="source-toggle" href="#"
736
+ onclick="toggleCode('M000109-source');return false;">[Source]</a></p>
737
+ <div class="method-source-code" id="M000109-source">
738
+ <pre>
739
+ <span class="ruby-comment cmt"># File erubis/helpers/rails_form_helper.rb, line 176</span>
740
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pp_time_zone_select</span>(<span class="ruby-identifier">object</span>, <span class="ruby-identifier">method</span>, <span class="ruby-identifier">priority_zones</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">options</span>={}, <span class="ruby-identifier">html_options</span>={})
741
+ <span class="ruby-identifier">model</span> = <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:model</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">options</span>[<span class="ruby-value str">'model'</span>] <span class="ruby-operator">||</span> <span class="ruby-constant">TimeZone</span>
742
+ <span class="ruby-identifier">collection</span> = <span class="ruby-identifier">model</span>.<span class="ruby-identifier">all</span>.<span class="ruby-identifier">collect</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">e</span><span class="ruby-operator">|</span> [<span class="ruby-identifier">e</span>.<span class="ruby-identifier">name</span>, <span class="ruby-identifier">e</span>.<span class="ruby-identifier">to_s</span>] }
743
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">_pp_select</span>(<span class="ruby-identifier">object</span>, <span class="ruby-identifier">method</span>, <span class="ruby-identifier">collection</span>, <span class="ruby-identifier">priority_zones</span>, <span class="ruby-identifier">options</span>, <span class="ruby-identifier">html_options</span>)
744
+ <span class="ruby-keyword kw">end</span>
745
+ </pre>
746
+ </div>
747
+ </div>
748
+ </div>
749
+
750
+
751
+ </div>
752
+
753
+
754
+ </div>
755
+
756
+
757
+ <div id="validator-badges">
758
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
759
+ </div>
760
+
761
+ </body>
762
+ </html>