Sha256: 9fa41912b5c5f8218213cdfaa091790182e62ea2f65fce9a1654df72495842b8
Contents?: true
Size: 605 Bytes
Versions: 39
Compression:
Stored size: 605 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, test fixtures in test/fixtures/singular_name.yml. Examples: ./script/generate hobo_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
39 entries across 39 versions & 1 rubygems