Sha256: b815de940c716eb26785872c86e6b3c58e29f8450619143a3e99f3feba0a1a3f
Contents?: true
Size: 741 Bytes
Versions: 30
Compression:
Stored size: 741 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/test/unit/notifications_test.rb Fixtures: test/fixtures/notifications/signup [...]
Version data entries
30 entries across 30 versions & 5 rubygems