Sha256: 8e88b80689bf953b33b2cdd9976551f6e105b1f5a03c64b978ecf51996c4ffa2

Contents?: true

Size: 1.35 KB

Versions: 134

Compression:

Stored size: 1.35 KB

Contents

Description:
    Scaffolds an entire resource, from model and migration to controller and
    views, along with a full test suite. The resource is ready to use as a
    starting point for your restful, resource-oriented application.

    Pass the name of the model, either CamelCased or under_scored, as the first
    argument, and an optional list of attribute pairs.

    Attribute pairs are column_name:sql_type arguments specifying the
    model's attributes. Timestamps are added by default, so you don't have to
    specify them by hand as 'created_at:datetime updated_at:datetime'.

    You don't have to think up every attribute up front, but it helps to
    sketch out a few so you can start working with the resource immediately.

    For example, `scaffold post title:string body:text published:boolean`
    gives you a model with those three attributes, a controller that handles
    the create/show/update/destroy, forms to create and edit your posts, and
    an index that lists them all, as well as a map.resources :posts
    declaration in config/routes.rb.

    Also, it creates Facebook view templates and functional tests.

Examples:
    `./script/generate scaffold post` # no attributes, view will be anemic
    `./script/generate scaffold post title:string body:text published:boolean`
    `./script/generate scaffold purchase order_id:integer amount:decimal`

Version data entries

134 entries across 134 versions & 29 rubygems

Version Path
al-facebooker-1.0.12.1 generators/facebook_scaffold/USAGE
al-facebooker-1.0.12 generators/facebook_scaffold/USAGE
al-facebooker-1.0.9 generators/facebook_scaffold/USAGE
corey-facebooker-1.0.28.1 generators/facebook_scaffold/USAGE
cwninja-facebooker-1.0.8 generators/facebook_scaffold/USAGE
djanowski-facebooker-1.0.1 generators/facebook_scaffold/USAGE
djanowski-facebooker-1.0.10 generators/facebook_scaffold/USAGE
djanowski-facebooker-1.0.11 generators/facebook_scaffold/USAGE
djanowski-facebooker-1.0.12 generators/facebook_scaffold/USAGE
djanowski-facebooker-1.0.2 generators/facebook_scaffold/USAGE
djanowski-facebooker-1.0.4 generators/facebook_scaffold/USAGE
djanowski-facebooker-1.0.7 generators/facebook_scaffold/USAGE
djanowski-mmangino-facebooker-1.0.4 generators/facebook_scaffold/USAGE
fs-facebooker-1.0.37 generators/facebook_scaffold/USAGE
hashrocket-clearance-0.4.0 test/rails_root/vendor/plugins/facebooker/generators/facebook_scaffold/USAGE
hashrocket-clearance-0.4.1 test/rails_root/vendor/plugins/facebooker/generators/facebook_scaffold/USAGE
hashrocket-clearance-0.4.2 test/rails_root/vendor/plugins/facebooker/generators/facebook_scaffold/USAGE
hashrocket-clearance-0.4.3 test/rails_root/vendor/plugins/facebooker/generators/facebook_scaffold/USAGE
mborromeo-facebooker-1.0.28 generators/facebook_scaffold/USAGE
mborromeo-facebooker-1.0.29 generators/facebook_scaffold/USAGE