Model and Controller's naming rule for irregular noun in Rails -


how should name controller if belonging model name irregular noun?

for example, if model name "child" name should use? "children" or "childs"?

for irregular language occurrences can have @ https://github.com/rails/rails/blob/4-0-0/activesupport/lib/active_support/inflections.rb

as can see child become children.


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -