Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v4.0.2) is shown here.
collection_name()
public
Checks for uncountable plurals, and appends “_index” if the plural
and singular
form are the same.
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 1002
def collection_name
singular == plural ? "#{plural}_index" : plural
end