RedRails如何自动生成controller

RedRails如何自动生成controller

就像在cmd中输入ruby script/generate 一样
还有怎么设置默认的数据库为mysql php?name=rails" onclick="tagshow(event)" class="t_tag">rails2.0默认的sqlite3!
用netbeans6好啦,只要设置ruby的路径。
修改 \rails_apps\{yourapp}\config\database.yml
development:
 adapter: mysql
 database: xxxx
 host: localhost
 username: root
 password: