Sha256: 5fc8cb881feee4f62c432b80207c005120970360490ab003f2757814b1ef67af

Contents?: true

Size: 588 Bytes

Versions: 22

Compression:

Stored size: 588 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/singular_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

22 entries across 22 versions & 4 rubygems

Version Path
shattered_ruby-0.5.0.2 lib/rails_generator/generators/components/model/USAGE
shattered_ruby-0.5.1 lib/rails_generator/generators/components/model/USAGE