Blueberry Scaffold
Scaffold generator used by Blueberry Apps. Features I18n support, Shoulda and Factory Girl tests.
Usage
script/generate blueberry_scaffold [namespace]/[name] [controller actions] [model attributes]
If you specify namespace, it will be used for controller not for model. Model attributes are in format name:type.
Example
script/generate blueberry_scaffold book index show new create title:string author:string
This creates Book model class and test with title and author attributes. And BooksController class & test with index, show, new and create actions. You can specify any of REST actions (index, show, new, edit, create, update, destroy), if you don’t specify any all 7 actions are created by default.
Copyright © 2009 Jiří Zajpt, released under the MIT license