Rails naming conventions

Variable

    all lowercaseword separated by underscores

Class && Module

    no underscorecamel style

Table

    pluralseperate by underscoresall lowercase

File

    lowercaseseperated by underscores

Controller

    pluralcamel style

Example:

https://gist.github.com/farmerworking/6877400

Rails naming conventions

相关文章:

你感兴趣的文章:

标签云: