shoulda_machinist_generator 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.rdoc +12 -0
  2. data/VERSION +1 -1
  3. metadata +3 -3
@@ -8,8 +8,20 @@ It's used in basically the same way as shoulda_generator, i.e.:
8
8
  script/generate shoulda_machinist_scaffold post title:string body:text published:boolean
9
9
  script/generate shoulda_machinist_scaffold purchase order_id:integer amount:decimal
10
10
 
11
+
11
12
  In the interest of simplicity, there is no option to use haml (only erb templates are included). It'd be nice to support alternate template types, so if anyone wants to fork the gem we would happily say yes to any pull requests slapping this functionality in.
12
13
 
14
+ We've also added an admin system generator, which you can use like so:
15
+
16
+ script/generate shoulda_machinist_admin_scaffold post title:string body:text
17
+
18
+ This will barf out the following:
19
+
20
+ * the model, its blueprint, and associated unit test
21
+ * an admin controller, with all 7 "normal" restful Rails actions, properly namespaced and with correct url_for values for the namespace, with functional tests
22
+ * a front-end controller, with 2 actions ("index" and "show"), with functional tests
23
+
24
+
13
25
  == Installation
14
26
 
15
27
  gem install shoulda_machinist_generator
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.0
1
+ 0.4.1
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shoulda_machinist_generator
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 0
10
- version: 0.4.0
9
+ - 1
10
+ version: 0.4.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dave Hrycyszyn