roda-component 0.1.23 → 0.1.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/roda/component/dom.rb +4 -0
- data/lib/roda/component/form.rb +3 -1
- data/lib/roda/component/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff8336613ebc26d6354cb84d5f66318bb85bbcc9
|
4
|
+
data.tar.gz: 600e954b6328e17635784196b778ee41da113db7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c956b16f6ee27862ca8a9a9eff6ab2e60a3c784424777fa9c98790591835f286aacb0666b6dd9b9188d3ec7c109f83dce73acd875862d0be34e91025a2466a2
|
7
|
+
data.tar.gz: 004554a394e137ed9424028168a2329e9aa92636a80a80174b61b46cd13b6e5b169bd536a94b71511e4dde7e1bc0463852e5282c62e9e5e96db0dfba59c54ded
|
data/lib/roda/component/dom.rb
CHANGED
data/lib/roda/component/form.rb
CHANGED
@@ -210,7 +210,7 @@ class Roda
|
|
210
210
|
dom = _options[:dom] unless dom
|
211
211
|
key = _options[:key] if !key && _options.key?(:key)
|
212
212
|
|
213
|
-
dom.find('input, select') do |element|
|
213
|
+
dom.find('input, select, textarea') do |element|
|
214
214
|
name = element['name']
|
215
215
|
name = name.gsub(/\A#{key}/, '') if key
|
216
216
|
keys = name.gsub(/\A\[/, '').gsub(/[^a-z0-9_]/, '|').gsub(/\|\|/, '|').gsub(/\|$/, '').split('|')
|
@@ -238,6 +238,8 @@ class Roda
|
|
238
238
|
end
|
239
239
|
when 'input'
|
240
240
|
element['value'] = value.to_s
|
241
|
+
when 'textarea'
|
242
|
+
element.val value.to_s
|
241
243
|
end
|
242
244
|
end
|
243
245
|
end
|