class ActionDispatch::Routing::Mapper::Resources::Resource

def collection_name

Checks for uncountable plurals, and appends "_index" if they're.
def collection_name
  singular == plural ? "#{plural}_index" : plural
end