staple 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/staple/install_generator.rb +1 -1
- data/source/simple_form/_form.html.slim +6 -7
- data/staple.gemspec +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: cd373555dbad0608563d850e7f65eb048ae6b8ee
|
4
|
+
data.tar.gz: b7e291347abb4f7cdddc4f2048ec30285330faf4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a4633563c6959c47ab72982acc5c3de07365d7aaae2a6e6d0ef29243722dfff70ece94077e7745992615eed424753d000e7d015955e2028b2df588a822c78ca
|
7
|
+
data.tar.gz: d1ea7f92ea69d5a914497892af83ad794e762a038bfddbb45947e38a2e03b7fd38bfddc114569873b7f4a0baf34ab8e5b05aa73b12c45a06c4d41b5169c416d9
|
@@ -32,7 +32,7 @@ module Staple
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def simple_form_template
|
35
|
-
copy_file "source/simple_form/_form.html.slim", "lib/templates/slim/scaffold/_form.html.slim"
|
35
|
+
copy_file "source/simple_form/_form.html.slim", "lib/templates/slim/scaffold/_form.html.slim", :force => true
|
36
36
|
end
|
37
37
|
|
38
38
|
def custom_scaffold
|
@@ -1,8 +1,7 @@
|
|
1
|
-
= simple_form_for(@<%= singular_table_name
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
.actions
|
1
|
+
= simple_form_for(@<%= singular_table_name %>, :html => {'data-abide' => ''}) do |f|
|
2
|
+
.form-inputs
|
3
|
+
<%- attributes.each do |attribute| -%>
|
4
|
+
= f.<%= attribute.reference? ? :association : :input %> :<%= attribute.name %>, input_html: { required: ''}, hint: 'Cannot be blank.'
|
5
|
+
<%- end -%>
|
6
|
+
.form-actions
|
8
7
|
= f.button :submit
|
data/staple.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "staple"
|
7
|
-
spec.version = "0.0.
|
7
|
+
spec.version = "0.0.9"
|
8
8
|
spec.summary = "a high level ui generator (COMING SOON)"
|
9
9
|
spec.description = "Coming Soon. Built on top of foundation."
|
10
10
|
spec.authors = ["Ryan Helsing"]
|