Sha256: 6726e33fdbf6bb02d1844bc8f44175e0266250b0683c8bc8879c115ac82125cc

Contents?: true

Size: 585 Bytes

Versions: 2

Compression:

Stored size: 585 Bytes

Contents

Description:
    The model generator creates stubs for a new model.

    The generator takes a model name as its argument.  The model name may be
    given in CamelCase or under_score and should not be suffixed with 'Model'.

    The generator creates a model class in app/models, a test suite in
    test/unit, and test fixtures in test/fixtures/model_name.yml.

Example:
    ./script/generate model Account

    This will create an Account model:
        Model:      app/models/account.rb
        Test:       test/unit/account_test.rb
        Fixtures:   test/fixtures/accounts.yml

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails-0.10.1 lib/rails_generator/generators/components/model/USAGE
rails-0.10.0 lib/rails_generator/generators/components/model/USAGE