Sha256: ee8f1256cf098e56556cf62859469c26570c953e1c0629abbccdc4e1495d1c90

Contents?: true

Size: 740 Bytes

Versions: 5

Compression:

Stored size: 740 Bytes

Contents

Description:
    The mailer generator creates stubs for a new mailer and its views.

    The generator takes a mailer name and a list of views as arguments.
    The mailer name may be given in CamelCase or under_score.

    The generator creates a mailer class in app/models with view templates
    in app/views/mailer_name, and a test suite with fixtures in test/unit.

Example:
    ./script/generate mailer Notifications signup forgot_password invoice

    This will create a Notifications mailer class:
        Mailer:     app/models/notifications.rb
        Views:      app/views/notifications/signup.rhtml [...]
        Test:       test/unit/credit_card_controller_test.rb
        Fixtures:   test/fixtures/notifications/signup [...]

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rails-0.14.1 lib/rails_generator/generators/components/mailer/USAGE
rails-0.14.2 lib/rails_generator/generators/components/mailer/USAGE
rails-0.14.4 lib/rails_generator/generators/components/mailer/USAGE
rails-0.14.3 lib/rails_generator/generators/components/mailer/USAGE
rails-1.0.0 lib/rails_generator/generators/components/mailer/USAGE