Merge pull request #20288 from brian-davis/brian-davis
Grammar fix to Active Record Basics guide. [ci skip]
This commit is contained in:
commit
6a074044df
@ -74,8 +74,8 @@ By default, Active Record uses some naming conventions to find out how the
|
|||||||
mapping between models and database tables should be created. Rails will
|
mapping between models and database tables should be created. Rails will
|
||||||
pluralize your class names to find the respective database table. So, for
|
pluralize your class names to find the respective database table. So, for
|
||||||
a class `Book`, you should have a database table called **books**. The Rails
|
a class `Book`, you should have a database table called **books**. The Rails
|
||||||
pluralization mechanisms are very powerful, being capable to pluralize (and
|
pluralization mechanisms are very powerful, being capable of pluralizing (and
|
||||||
singularize) both regular and irregular words. When using class names composed
|
singularizing) both regular and irregular words. When using class names composed
|
||||||
of two or more words, the model class name should follow the Ruby conventions,
|
of two or more words, the model class name should follow the Ruby conventions,
|
||||||
using the CamelCase form, while the table name must contain the words separated
|
using the CamelCase form, while the table name must contain the words separated
|
||||||
by underscores. Examples:
|
by underscores. Examples:
|
||||||
|
Loading…
Reference in New Issue
Block a user