nested_scaffold 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,19 +1,66 @@
1
1
  = nested_scaffold
2
2
 
3
- Description goes here.
3
+ A scaffold command that generates a set of perfectly working nested resource for Rails 3.
4
+
5
+ == Features
6
+
7
+ * Generates a nested child resource with a single command
8
+ * Generates a beautifully working bunch of code
9
+ * Automatically generates the appropriate model associations for ActiveRecord
10
+ * Haml ready
11
+
12
+ == Rails versions
13
+
14
+ 3.0.x and 3.1
15
+
16
+ == Install
17
+
18
+ Put this line in your Gemfile:
19
+ gem 'nested_scaffold'
20
+
21
+ Then bundle:
22
+ % bundle
23
+
24
+ == Usage
25
+
26
+ % rails generate scaffold PARENT_NAME/NAME [field:type field:type] [options]
27
+
28
+ (Expects PARENT model to exist in advance)
29
+
30
+ == Example
31
+
32
+ While "Post" model exists,
33
+
34
+ % rails g nested_scaffold post/comment name:string content:text
35
+
36
+ This will create:
37
+ comment {model, controller, helper, views, tests}
38
+ nested resource route
39
+ Post.has_many :comments association
40
+
41
+ == Options
42
+
43
+ Basically same as the original scaffold.
44
+
45
+ == TODO / known issues
46
+
47
+ * namespace (who needs?)
48
+ * valid fixtures (who uses?)
49
+ * some generated functional tests fail (who cares?)
50
+ * RSpec
51
+ * third party orms
52
+ * fixture replacements
4
53
 
5
54
  == Contributing to nested_scaffold
6
-
55
+
7
56
  * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
8
57
  * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
9
58
  * Fork the project
10
59
  * Start a feature/bugfix branch
11
60
  * Commit and push until you are happy with your contribution
12
- * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
13
61
  * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
14
62
 
15
63
  == Copyright
16
64
 
17
65
  Copyright (c) 2010 Akira Matsuda. See LICENSE.txt for
18
66
  further details.
19
-
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.1.0
@@ -7,4 +7,4 @@ Example:
7
7
  This will create:
8
8
  user {model, controller, helper, views, tests}
9
9
  nested resource route
10
- Group.has_many :user association
10
+ Group.has_many :users association
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{nested_scaffold}
8
- s.version = "0.0.1"
8
+ s.version = "0.1.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Akira Matsuda"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nested_scaffold
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 0
9
8
  - 1
10
- version: 0.0.1
9
+ - 0
10
+ version: 0.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Akira Matsuda