= private = protected
collection_name()
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 1187 def collection_name singular == plural ? "#{plural}_index" : plural end