formtastic 1.2.3.beta → 1.2.3
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.textile +3 -3
- metadata +7 -9
data/README.textile
CHANGED
|
@@ -563,7 +563,7 @@ h3. Generating a partial with @--partial@
|
|
|
563
563
|
You can also ask Formtastic to *generate a partial* with the @--partial@ option, placing it in the correct location inside your @app/views@ directory:
|
|
564
564
|
|
|
565
565
|
<pre>
|
|
566
|
-
$ rails generate
|
|
566
|
+
$ rails generate formtastic:form Post --partial
|
|
567
567
|
exists app/views/posts
|
|
568
568
|
create app/views/posts/_form.html.erb
|
|
569
569
|
</pre>
|
|
@@ -571,7 +571,7 @@ You can also ask Formtastic to *generate a partial* with the @--partial@ option,
|
|
|
571
571
|
h3. Specifying HAML instead of ERB with @--haml@
|
|
572
572
|
|
|
573
573
|
<pre>
|
|
574
|
-
$ rails generate
|
|
574
|
+
$ rails generate formtastic:form Post --haml
|
|
575
575
|
exists app/views/admin/posts
|
|
576
576
|
create app/views/admin/posts/_form.html.haml
|
|
577
577
|
</pre>
|
|
@@ -579,7 +579,7 @@ h3. Specifying HAML instead of ERB with @--haml@
|
|
|
579
579
|
h3. Specifying controller namespace with @--controller@
|
|
580
580
|
|
|
581
581
|
<pre>
|
|
582
|
-
$ rails generate
|
|
582
|
+
$ rails generate formtastic:form Post --partial --controller admin/posts
|
|
583
583
|
exists app/views/admin/posts
|
|
584
584
|
create app/views/admin/posts/_form.html.erb
|
|
585
585
|
</pre>
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: formtastic
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
5
|
-
prerelease:
|
|
4
|
+
hash: 25
|
|
5
|
+
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 1
|
|
8
8
|
- 2
|
|
9
9
|
- 3
|
|
10
|
-
|
|
11
|
-
version: 1.2.3.beta
|
|
10
|
+
version: 1.2.3
|
|
12
11
|
platform: ruby
|
|
13
12
|
authors:
|
|
14
13
|
- Justin French
|
|
@@ -16,7 +15,7 @@ autorequire:
|
|
|
16
15
|
bindir: bin
|
|
17
16
|
cert_chain: []
|
|
18
17
|
|
|
19
|
-
date:
|
|
18
|
+
date: 2011-01-07 00:00:00 +11:00
|
|
20
19
|
default_executable:
|
|
21
20
|
dependencies:
|
|
22
21
|
- !ruby/object:Gem::Dependency
|
|
@@ -57,14 +56,13 @@ dependencies:
|
|
|
57
56
|
requirement: &id003 !ruby/object:Gem::Requirement
|
|
58
57
|
none: false
|
|
59
58
|
requirements:
|
|
60
|
-
- -
|
|
59
|
+
- - ~>
|
|
61
60
|
- !ruby/object:Gem::Version
|
|
62
|
-
hash:
|
|
61
|
+
hash: 3
|
|
63
62
|
segments:
|
|
64
63
|
- 0
|
|
65
64
|
- 4
|
|
66
|
-
|
|
67
|
-
version: 0.4.0
|
|
65
|
+
version: "0.4"
|
|
68
66
|
type: :runtime
|
|
69
67
|
version_requirements: *id003
|
|
70
68
|
- !ruby/object:Gem::Dependency
|