1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
Description:
The model_active_ldap 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. It will not create a migration.
Examples:
rails generate active_ldap:model user
This will create a User model:
Model: app/models/user.rb
Test: test/unit/user_test.rb
Fixtures: test/fixtures/users.yml
|