mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
2b09948637
Generators generate things, but what is meant by 'Stubbing out' might confuse beginners and non-native English speakers. While generated tests are stubs that should have an implementation, a generated model is a valid model that doesn't require any changes.
12 lines
350 B
Text
12 lines
350 B
Text
Description:
|
|
============
|
|
Generates a new mailbox class in app/mailboxes and invokes your template
|
|
engine and test framework generators.
|
|
|
|
Example:
|
|
========
|
|
bin/rails generate mailbox inbox
|
|
|
|
creates an InboxMailbox class and test:
|
|
Mailbox: app/mailboxes/inbox_mailbox.rb
|
|
Test: test/mailboxes/inbox_mailbox_test.rb
|