Generate rails scaffold pages based on a rails database schema you already have.
Use your schema.rb file from <rails_app>/db or generated with rake db:schema:dump
SchemaToScaffold will generate rails scaffolding scripts by table like this:
rails g scaffold users fname:string lname:string bdate:date email:string encrypted_password:string
Assuming that you have rubygems-bundler installed, just type:
gem install schema_to_scaffold
Just type:
scaffold [options]
[options]
-h Displays help.
-p <path> It specifies a search path or a path to a file
ex: -p /user/path or /path/to/your/schema.rb
-c Works only on linux. Will copy the script copied to your clipboard.
You will need to have xclip installed(see below).
sudo apt-get install xclip