form_cutter 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
data/lib/form_cutter/version.rb
CHANGED
@@ -1,13 +1,11 @@
|
|
1
1
|
<%%= form_for(@<%= singular_name %>) do |f| %>
|
2
|
-
|
3
|
-
|
4
|
-
<div class="inputs">
|
2
|
+
<div class="fields">
|
5
3
|
<%- attributes.each do |attribute| -%>
|
6
4
|
<%%= f.<%= attribute.field_type %> :<%= attribute.name %> %>
|
7
5
|
<%- end -%>
|
8
6
|
</div>
|
9
7
|
|
10
8
|
<div class="actions">
|
11
|
-
<%%= f.
|
9
|
+
<%%= f.submit :submit %>
|
12
10
|
</div>
|
13
11
|
<%% end %>
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 1.0.
|
8
|
+
- 1
|
9
|
+
version: 1.0.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Benjamin Lewis
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-10-
|
17
|
+
date: 2010-10-23 00:00:00 +10:30
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|
@@ -35,7 +35,6 @@ files:
|
|
35
35
|
- lib/generators/form_cutter/USAGE
|
36
36
|
- lib/generators/form_cutter/install_generator.rb
|
37
37
|
- lib/generators/form_cutter/templates/_form.html.erb
|
38
|
-
- lib/generators/form_cutter/templates/_form.html.haml
|
39
38
|
- lib/generators/form_cutter/templates/default.html.erb
|
40
39
|
- lib/generators/form_cutter/templates/en.yml
|
41
40
|
- lib/generators/form_cutter/templates/form_cutter.rb
|
@@ -1,18 +0,0 @@
|
|
1
|
-
= form_cutter_for(@<%= singular_name %>) do |f|
|
2
|
-
- if @<%= singular_name %>.errors.any?
|
3
|
-
#error_explanation
|
4
|
-
%h2
|
5
|
-
= pluralize(@<%= singular_name %>.errors.count, "error")
|
6
|
-
prohibited this <%= singular_name %> from being saved:
|
7
|
-
|
8
|
-
%ul
|
9
|
-
- @<%= singular_name %>.errors.full_messages.each do |msg|
|
10
|
-
%li= msg
|
11
|
-
|
12
|
-
.inputs
|
13
|
-
<%- attributes.each do |attribute| -%>
|
14
|
-
= f.<%= attribute.reference? ? :association : :input %> :<%= attribute.name %>
|
15
|
-
<%- end -%>
|
16
|
-
|
17
|
-
.actions
|
18
|
-
= f.button :submit
|