foundation_form_builder 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +5 -5
- data/lib/foundation_form_builder/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: 183f304b6211fa12cde89aae0e78b170d490b0df
|
|
4
|
+
data.tar.gz: a2362672bfd036b6f9b3ac9bf3d1b26a54ca6a13
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 650775362c18e92f35801166c790ebfa01a67f7a0adb502d77e29b41a7b4f744d4d6ab832fc306929bbbc28f03ce5a30d3d5a496b664222fc52e20e1f25dd7ff
|
|
7
|
+
data.tar.gz: 58d0c7b56ed021e80f07f33c99acfc49003f852e2264051d723c5fbd1ef0e52671526a7681f512229c13aa284fd2db5c34a621ea5fa0db219a51dda65ce67c30
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -34,11 +34,11 @@ end
|
|
|
34
34
|
will create something like
|
|
35
35
|
```html
|
|
36
36
|
<form action='users/1' and='all the other standard Rails attributes :)'>
|
|
37
|
-
<div class='email'>
|
|
37
|
+
<div class='email'> <!-- adds class 'error' too if there are validation errors -->
|
|
38
38
|
<label for='user_email'>Email</label>
|
|
39
39
|
<input type='email' id='user_email' name='user[email]' />
|
|
40
40
|
<!-- if there are validation errors, also the following: -->
|
|
41
|
-
<
|
|
41
|
+
<span class='error'>can't be blank</div>
|
|
42
42
|
</div>
|
|
43
43
|
</form>
|
|
44
44
|
```
|
|
@@ -75,13 +75,13 @@ f.input_div :size, label: 'My size is:', type: :select, values: [['Small', 1], [
|
|
|
75
75
|
|
|
76
76
|
It renders as:
|
|
77
77
|
```html
|
|
78
|
-
<div class='size'>
|
|
79
|
-
<label for='
|
|
78
|
+
<div class='size'> <!-- and class 'error' if necessary -->
|
|
79
|
+
<label for='product_siz'>My size is:</label>
|
|
80
80
|
<select name='product[size]' id='product_size'>
|
|
81
81
|
<option>Choose a size</option>
|
|
82
82
|
<option value='1'>Small</option>
|
|
83
83
|
<option value='2'>Large</option>
|
|
84
84
|
</select>
|
|
85
|
-
<!-- error
|
|
85
|
+
<!-- error span if necessary, as above -->
|
|
86
86
|
</div>
|
|
87
87
|
```
|