Sha256: c295fd62e4f21296b2bd68f3c30e641fd5ece35720557c9d29575ab01c4480bc
Contents?: true
Size: 527 Bytes
Versions: 8
Compression:
Stored size: 527 Bytes
Contents
GENERATOR model - create model stub files SYNOPSIS generate model ModelName DESCRIPTION The model generator takes a model name and generates an empty model in app/models, a test suite in test/unit with one passing test case, and a fixtures YAML file in the test/fixtures directory. EXAMPLE ./script/generate model Account This will generate an Account class in app/models/account.rb, an AccountTest in test/unit/account_test.rb, and the fixtures file test/fixtures/account.yml.
Version data entries
8 entries across 8 versions & 2 rubygems