showbuilder 0.0.3 → 0.0.4
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/lib/showbuilder/builders/model_form_builder.rb +6 -0
- metadata +38 -19
@@ -44,6 +44,12 @@ module Showbuilder
|
|
44
44
|
self.text_area(method, :rows => 5)
|
45
45
|
end
|
46
46
|
end
|
47
|
+
|
48
|
+
def show_select_input(method, choices, lable, options = {}, html_options = {})
|
49
|
+
self.show_method_input(method, :label_text => lable) do
|
50
|
+
self.select(method, choices, options, html_options)
|
51
|
+
end
|
52
|
+
end
|
47
53
|
|
48
54
|
def show_method_input(method, options = {})
|
49
55
|
label_text = options[:label_text] || self.show_current_itext(method)
|
metadata
CHANGED
@@ -1,22 +1,32 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: showbuilder
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 4
|
10
|
+
version: 0.0.4
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Ery Wang, Mario Du
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
17
|
+
|
18
|
+
date: 2012-05-12 00:00:00 Z
|
13
19
|
dependencies: []
|
20
|
+
|
14
21
|
description: A Rails View Helper. Show model/s as view, form, list.
|
15
22
|
email: ery@baoleihang.com
|
16
23
|
executables: []
|
24
|
+
|
17
25
|
extensions: []
|
26
|
+
|
18
27
|
extra_rdoc_files: []
|
19
|
-
|
28
|
+
|
29
|
+
files:
|
20
30
|
- lib/showbuilder.rb
|
21
31
|
- lib/showbuilder/show_model_view.rb
|
22
32
|
- lib/showbuilder/i18n_text.rb
|
@@ -33,27 +43,36 @@ files:
|
|
33
43
|
- lib/showbuilder/show_form.rb
|
34
44
|
homepage: https://github.com/ery/showbuilder
|
35
45
|
licenses: []
|
46
|
+
|
36
47
|
post_install_message:
|
37
48
|
rdoc_options: []
|
38
|
-
|
49
|
+
|
50
|
+
require_paths:
|
39
51
|
- lib
|
40
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
52
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
41
53
|
none: false
|
42
|
-
requirements:
|
43
|
-
- -
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
|
46
|
-
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
hash: 3
|
58
|
+
segments:
|
59
|
+
- 0
|
60
|
+
version: "0"
|
61
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
47
62
|
none: false
|
48
|
-
requirements:
|
49
|
-
- -
|
50
|
-
- !ruby/object:Gem::Version
|
51
|
-
|
63
|
+
requirements:
|
64
|
+
- - ">="
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
hash: 3
|
67
|
+
segments:
|
68
|
+
- 0
|
69
|
+
version: "0"
|
52
70
|
requirements: []
|
71
|
+
|
53
72
|
rubyforge_project:
|
54
|
-
rubygems_version: 1.8.
|
73
|
+
rubygems_version: 1.8.24
|
55
74
|
signing_key:
|
56
75
|
specification_version: 3
|
57
76
|
summary: A Rails View Helper.
|
58
77
|
test_files: []
|
59
|
-
|
78
|
+
|