scaffold_form_generator 1.1.0 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ ==1.1.2 / 2009-02-13
2
+ * Changed labels to use the label helper so it's more consistent with Rails 2.2 and higher
3
+ == 1.1.1 / 2008-06-21
4
+ * Fixed an issue where a Class name collision would occur.
1
5
  == 1.1.0 / 2007-10-30
2
6
  * Changed form fields to use the form_for syntax (f.text_field and such)
3
7
  * Removed fields ending in _id from the generated forms.
data/README.txt CHANGED
@@ -1,10 +1,10 @@
1
- ScaffoldForm
1
+ =ScaffoldForm Generator
2
2
  by Brian Hogan
3
3
  http://www.napcs.com
4
4
 
5
5
  == DESCRIPTION:
6
6
 
7
- Scaffolding, out of the box, is terrible. However, there's one part that saves you some serious time, and that's the form creation. This plugin takes code from Rails' legacy scaffold generator and makes it available again, but this time it only builds the new and edit forms.
7
+ Scaffolding, out of the box, is really not a good idea. You'll generate a bunch of stuff you might not use, and some of it isn't really production-worthy. However, when you stop using it, you notice that there's one part that saves you some serious time, and that's the form creation. This plugin takes code from Rails' legacy scaffold generator and makes it available again, but this time it only builds the new and edit forms.
8
8
 
9
9
  == FEATURES/PROBLEMS:
10
10
 
@@ -23,7 +23,7 @@ Scaffolding, out of the box, is terrible. However, there's one part that saves y
23
23
  == INSTALL:
24
24
 
25
25
  * Mac and Linux: sudo gem install scaffold_form_generator
26
- * Windows: gem install scaffold_form
26
+ * Windows: gem install scaffold_form_generator
27
27
 
28
28
  == LICENSE:
29
29
 
File without changes
@@ -10,7 +10,7 @@ class ScaffoldingSandbox
10
10
  end
11
11
 
12
12
  def default_input_block
13
- Proc.new { |record, column| "<p><label for=\"#{record}_#{column.name}\">#{column.human_name}</label><br/>\n#{input(record, column.name)}</p>\n" }
13
+ Proc.new { |record, column| "<%= f.label :#{column.name} %><br/>\n#{input(record, column.name)}</p>\n" }
14
14
  end
15
15
 
16
16
  end
@@ -136,8 +136,6 @@ class ScaffoldFormGenerator < Rails::Generator::NamedBase
136
136
 
137
137
  def manifest
138
138
  record do |m|
139
- # Check for class naming collisions.
140
- m.class_collisions controller_class_path, "#{controller_class_name}Controller", "#{controller_class_name}ControllerTest", "#{controller_class_name}Helper"
141
139
 
142
140
  # Controller, helper, views, and test directories.
143
141
 
metadata CHANGED
@@ -1,62 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.9.4
3
- specification_version: 1
4
2
  name: scaffold_form_generator
5
3
  version: !ruby/object:Gem::Version
6
- version: 1.1.0
7
- date: 2007-10-31 00:00:00 -05:00
8
- summary: Form generation for Rails models based on original scaffolding
9
- require_paths:
10
- - lib
11
- email: info@napcs.com
12
- homepage: http://www.zenspider.com/ZSS/Products/scaffold_form_generator/
13
- rubyforge_project: scaffoldform
14
- description: Form generation for Rails models based on original scaffolding with some minor tweaks.
15
- autorequire:
16
- default_executable:
17
- bindir: bin
18
- has_rdoc: true
19
- required_ruby_version: !ruby/object:Gem::Version::Requirement
20
- requirements:
21
- - - ">"
22
- - !ruby/object:Gem::Version
23
- version: 0.0.0
24
- version:
4
+ version: 1.1.2
25
5
  platform: ruby
26
- signing_key:
27
- cert_chain:
28
- post_install_message:
29
6
  authors:
30
7
  - Brian Hogan
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-04-08 00:00:00 -05:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: hoe
17
+ type: :development
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 1.8.1
24
+ version:
25
+ description: Form generation for Rails models based on original scaffolding with some minor tweaks.
26
+ email: info@napcs.com
27
+ executables: []
28
+
29
+ extensions: []
30
+
31
+ extra_rdoc_files:
32
+ - README.txt
33
+ - History.txt
31
34
  files:
32
35
  - README.txt
33
36
  - History.txt
37
+ - lib/scaffold_form.rb
34
38
  - scaffold_form_generator.rb
35
39
  - templates/form.rhtml
36
40
  - templates/form_scaffolding.rhtml
37
41
  - templates/view_edit.rhtml
38
42
  - templates/view_new.rhtml
39
- test_files:
40
- - test/test_scaffold_form.rb
43
+ has_rdoc: true
44
+ homepage: Scaffolding, out of the box, is really not a good idea. You'll generate a bunch of stuff you might not use, and some of it isn't really production-worthy. However, when you stop using it, you notice that there's one part that saves you some serious time, and that's the form creation. This plugin takes code from Rails' legacy scaffold generator and makes it available again, but this time it only builds the new and edit forms.
45
+ post_install_message:
41
46
  rdoc_options:
42
47
  - --main
43
48
  - README.txt
44
- extra_rdoc_files:
45
- - README.txt
46
- - History.txt
47
- executables: []
48
-
49
- extensions: []
50
-
49
+ require_paths:
50
+ - lib
51
+ required_ruby_version: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: "0"
56
+ version:
57
+ required_rubygems_version: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: "0"
62
+ version:
51
63
  requirements: []
52
64
 
53
- dependencies:
54
- - !ruby/object:Gem::Dependency
55
- name: hoe
56
- version_requirement:
57
- version_requirements: !ruby/object:Gem::Version::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: 1.3.0
62
- version:
65
+ rubyforge_project: scaffoldform
66
+ rubygems_version: 1.3.1
67
+ signing_key:
68
+ specification_version: 2
69
+ summary: Form generation for Rails models based on original scaffolding
70
+ test_files:
71
+ - test/test_scaffold_form.rb