formtastic-fake_input 0.0.1 → 0.0.2
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.
- checksums.yaml +4 -4
- data/lib/formtastic/inputs/fake_input.rb +1 -1
- metadata +6 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 65050ffcfa578b63e5ebba4dbe2ad991f95d5c22300e3d6b6feb4dedfd28f35c
|
|
4
|
+
data.tar.gz: 95735708ca8df23d97b633c6e158132c2cd9b9ed3f4298e4aa7ee37152bc2cbb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bcdbd7ecf2094d16163c9c2790dde12a19c93553224931e2c0c80928b05e8d98e6d3ff3ad3cebbb1827307a4c105c285770b595e5a7c1424536bf75023170853
|
|
7
|
+
data.tar.gz: 83376255df01e3f1a32d009f577d75145ff00760c02793344818817e996efdca71b0c54c5837bef815860248dfeab342d67186c1b1104671db479926e15356d0
|
|
@@ -11,7 +11,7 @@ module Formtastic
|
|
|
11
11
|
# <%= semantic_form_for(@user) do |f| %>
|
|
12
12
|
# <%= f.inputs do %>
|
|
13
13
|
# <%= f.input :id, :as => :fake %>
|
|
14
|
-
# <%= f.input :tax_class, :as => :fake, :value => "Class #{f.object.tax_class}"
|
|
14
|
+
# <%= f.input :tax_class, :as => :fake, :value => "Class #{f.object.tax_class}" %>
|
|
15
15
|
# <%= f.input :first_name, :as => :string %>
|
|
16
16
|
# <% end %>
|
|
17
17
|
# <% end %>
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: formtastic-fake_input
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Michael Klimenko
|
|
@@ -25,8 +25,11 @@ dependencies:
|
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '3'
|
|
27
27
|
description: |
|
|
28
|
-
It generates
|
|
29
|
-
|
|
28
|
+
It generates `span` tags for data values instead of `input`s.
|
|
29
|
+
|
|
30
|
+
This is useful when you need to show read-only value in the resource edit form
|
|
31
|
+
using all regular input decorations, giving user a clear understanding of its
|
|
32
|
+
"readonly-ness" and without the ability to pass its value in the form POST request.
|
|
30
33
|
email: m@klimenko.site
|
|
31
34
|
executables: []
|
|
32
35
|
extensions: []
|