formtastic-bootstrap 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.
- data/README.md +4 -4
- data/VERSION +1 -1
- data/formtastic-bootstrap.gemspec +2 -2
- metadata +3 -3
data/README.md
CHANGED
|
@@ -36,7 +36,7 @@ Make sure you've already downloaded and installed Formtastic!
|
|
|
36
36
|
### Overview
|
|
37
37
|
|
|
38
38
|
In general, Formtastic creates very verbose HTML whereas Bootstrap expects simpler HTML. Every attempt has been
|
|
39
|
-
made to generate the HTML expected by Bootstrap while still generating the rich HTML provided by
|
|
39
|
+
made to generate the HTML expected by Bootstrap while still generating the rich HTML provided by Formtastic. Here's a pretty typical (simplified) example of what Formtastic generates and what Formtastic Bootstrap generates.
|
|
40
40
|
|
|
41
41
|
#### ERB
|
|
42
42
|
|
|
@@ -90,9 +90,9 @@ made to generate the HTML expected by Bootstrap while still generating the rich
|
|
|
90
90
|
|
|
91
91
|
### Major Difference in Behavior
|
|
92
92
|
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
*
|
|
93
|
+
* Formtastic Bootstrap omits the <tt>label</tt> class on label tags since Twitter Bootstrap uses this tag in another context (and it makes bad things happen.)
|
|
94
|
+
* Formtastic Bootstrap puts the <tt>input</tt> label in a different place because it makes Bootstrap behave correctly.
|
|
95
|
+
* Formtastic Bootstrap renders <tt>:date</tt>, <tt>:datetime</tt> and <tt>:time</tt> as text fields since this is how Twitter Bootstrap presents these data types (Formtastic renders them as dropdowns.) Some Rails magic may have been lost here. Additionally:
|
|
96
96
|
* <tt>:date</tt> et al are tagged with the <tt>stringish</tt> class.
|
|
97
97
|
* Hidden fields are not generated.
|
|
98
98
|
* Fieldsets are simply nested.
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.1
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = "formtastic-bootstrap"
|
|
8
|
-
s.version = "1.0.
|
|
8
|
+
s.version = "1.0.1"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Matthew Bellantoni"]
|
|
12
|
-
s.date = "2011-11-
|
|
12
|
+
s.date = "2011-11-11"
|
|
13
13
|
s.description = "Formtastic form builder to generate Twitter Bootstrap-friendly markup."
|
|
14
14
|
s.email = "mjbellantoni@yahoo.com"
|
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: formtastic-bootstrap
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease:
|
|
5
|
-
version: 1.0.
|
|
5
|
+
version: 1.0.1
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- Matthew Bellantoni
|
|
@@ -10,7 +10,7 @@ autorequire:
|
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
12
|
|
|
13
|
-
date: 2011-11-
|
|
13
|
+
date: 2011-11-11 00:00:00 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: formtastic
|
|
@@ -183,7 +183,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
183
183
|
requirements:
|
|
184
184
|
- - ">="
|
|
185
185
|
- !ruby/object:Gem::Version
|
|
186
|
-
hash: -
|
|
186
|
+
hash: -1365601406111032188
|
|
187
187
|
segments:
|
|
188
188
|
- 0
|
|
189
189
|
version: "0"
|