Sha256: 72819baa6c055be0a8c618f0cdbb86b2292f822861c391d296f830b037e41ebf
Contents?: true
Size: 806 Bytes
Versions: 215
Compression:
Stored size: 806 Bytes
Contents
Description: Stubs out a new mailer and its views for the given extension. Pass the mailer name, either CamelCased or under_scored, and an optional list of emails as arguments. This generates a mailer class in app/models, view templates in app/views/mailer_name, a unit test in test/unit, and fixtures in test/fixtures. Example: `./script/generate extension_mailer MyExt Notifications signup forgot_password invoice` creates a Notifications mailer class, views, test, and fixtures: Mailer: vendor/my_ext/app/models/notifications.rb Views: vendor/my_ext/app/views/notifications/signup.erb [...] Test: vendor/my_ext/test/unit/test/unit/notifications_test.rb Fixtures: vendor/my_ext/test/fixtures/notifications/signup [...]
Version data entries
215 entries across 215 versions & 6 rubygems