forked from ahe/reverse_scaffold
-
Notifications
You must be signed in to change notification settings - Fork 0
ygbr/reverse_scaffold
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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
About
This script generates a Rails scaffold based on an existing table
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published