advanced_haml_scaffold_generator 1.0.5 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/advanced_haml_scaffold_generator.gemspec +2 -2
- data/lib/rails/generators/haml/scaffold/templates/_form.html.haml +5 -5
- data/lib/rails/generators/haml/scaffold/templates/edit.html.haml +2 -1
- data/lib/rails/generators/haml/scaffold/templates/new.html.haml +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: e21a50c29830fea75bc79a186687a6bc211ba5a9
|
4
|
+
data.tar.gz: 251b4a76c48808536d3e64756299a3e3dae6efd5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0de8e5e5efed855c7aa430cdd2c61485d6b81335db2be6637a09b9476a8ac139421dc35302d1dce49f743a5b831979b5cb94abbf0d208083f99367b016c88773
|
7
|
+
data.tar.gz: 888c74a2736089e5bc9c4034094fae974983baeac750e9a7fd172bda7bece6ccad6b17410631a118865b4f417bb436f75ce7f947a2d88429e12168ba3f209fa7
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
2.0.0
|
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: advanced_haml_scaffold_generator
|
5
|
+
# stub: advanced_haml_scaffold_generator 2.0.0 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "advanced_haml_scaffold_generator"
|
9
|
-
s.version = "
|
9
|
+
s.version = "2.0.0"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<% if Gem::Specification.map(&:name).include?('simple_form') -%>
|
2
|
-
= simple_form_for(
|
2
|
+
= simple_form_for(<%= singular_table_name %>) do |f|
|
3
3
|
= f.error_notification
|
4
4
|
|
5
5
|
.form-inputs
|
@@ -13,13 +13,13 @@
|
|
13
13
|
.form-actions
|
14
14
|
= f.button :submit
|
15
15
|
<% else -%>
|
16
|
-
= form_for(
|
17
|
-
- if
|
16
|
+
= form_for(<%= singular_table_name %>) do |f|
|
17
|
+
- if <%= singular_table_name %>.errors.any?
|
18
18
|
#error_explanation
|
19
19
|
%h2
|
20
|
-
= t 'errors.template.header', model: t('.<%= singular_name %>'), count:
|
20
|
+
= t 'errors.template.header', model: t('.<%= singular_name %>'), count: <%= singular_name %>.errors.count
|
21
21
|
%ul
|
22
|
-
-
|
22
|
+
- <%= singular_table_name %>.errors.full_messages.each do |msg|
|
23
23
|
%li= msg
|
24
24
|
|
25
25
|
<% for attribute in attributes -%>
|