v1.0.0 - Show latest stable - 0 notes - Superclass: Rails::Generator::Base

The base generator for named components: models, controllers, mailers, etc. The target name is taken as the first argument and inflected to singular, plural, class, file, and table forms for your convenience. The remaining arguments are aliased to actions for controller and mailer convenience.

If no name is provided, the generator raises a usage error with content optionally read from the USAGE file in the generator’s base path.

See <a href="/rails/Rails/Generator/Base">Rails::Generator::Base</a> for a discussion of Manifests and Commands.

Aliases

  • singular_name
  • args
Show files where this class is defined (1 file)
Register or log in to add new notes.