public
Description: A modified CRUD generator for Rails, more for solving my own needs
Homepage: http://blog.choonkeat.com/
Clone URL: git://github.com/choonkeat/better_scaffold.git
bugfix: writing instructions that actually work
choonkeat (author)
Thu Jun 05 00:12:45 -0700 2008
commit  1979be58226adbac0ba7aed30e801211b0f41c3c
tree    c0a8615ea24fba7c9e6c02ad4bc681db0cfed0b5
parent  a4d024fdfef1e136feacab339ebd5ded7fc1fcc4
0
...
6
7
8
 
 
 
 
...
6
7
8
9
10
11
12
0
@@ -6,3 +6,7 @@ A modified CRUD generator for Rails, more for solving my own needs of
0
   * using will_paginate in "index" action
0
   * using web_sg_form_builder for more consistent, semantically marked up forms (and creating those "_form" partials)
0
   
0
+Try
0
+ 1. ./script/generate better_scaffold orders/purchase order_id:integer created_at:datetime amount:decimal
0
+ 2. Visit http://localhost:3000/orders/1/purchases
0
+
...
29
30
31
32
 
33
34
 
35
36
37
...
29
30
31
 
32
33
 
34
35
36
37
0
@@ -29,9 +29,9 @@ Examples:
0
     ./script/generate better_scaffold purchase order_id:integer created_at:datetime amount:decimal
0
 
0
 Note:
0
- ./script/generate better_scaffold users/purchase order_id:integer created_at:datetime amount:decimal
0
+ ./script/generate better_scaffold orders/purchase order_id:integer created_at:datetime amount:decimal
0
     gives you regular scaffold for "Purchase"
0
- + correctly prefixed named_routes
0
+ + correctly prefixed named_routes, e.g. order_purchase_url(params[:order_id], @purchase)
0
     on top of
0
        + paginated 'index' action
0
        + _form and _summary partials (with css classes set)

Comments

    No one has commented yet.