forked from ahe/reverse_scaffold
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
47 lines (29 loc) · 967 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Copy the reverse_scaffold file into the script folder of your Rails app.
Let's say you have a users table in your db with the following columns : id, pseudo, email, password
A call to reverse_scaffold :
ruby script/reverse_scaffold users user
Will execute :
ruby script/generate scaffold user --skip-migration id:integer pseudo:string email:string password:string
Synopsis
--------
The reverse_scaffold script executes a Rails scaffold based on an existing table.
Usage
-----
ruby script/reverse_scaffold table_name model_name
Examples
--------
ruby script/reverse_scaffold users user
Options
-------
-h, --help Displays help message
-r, --rspec Generates rspec_scaffold
-V, --verbose Outputs the command but doesn't execute it
-v, --version
Author
------
Anthony Heukmes
http://2dconcept.com
http://github.com/ahe
Copyright
---------
Copyright (c) 2009 Anthony Heukmes. Licensed under the MIT License