method
map_default_collection_actions
![No documentation Importance_0](https://d2vfyqvduarcvs.cloudfront.net/images/importance_0.png?1349367920)
map_default_collection_actions(map, resource)
private
Hide source
# File actionpack/lib/action_controller/resources.rb, line 368 def map_default_collection_actions(map, resource) index_action_options = action_options_for("index", resource) map.named_route("#{resource.name_prefix}#{resource.plural}", resource.path, index_action_options) map.named_route("formatted_#{resource.name_prefix}#{resource.plural}", "#{resource.path}.:format", index_action_options) if resource.deprecate_name_prefix? map.deprecated_named_route("#{resource.name_prefix}#{resource.plural}", "#{resource.plural}") map.deprecated_named_route("formatted_#{resource.name_prefix}#{resource.plural}", "formatted_#{resource.plural}") end create_action_options = action_options_for("create", resource) map.connect(resource.path, create_action_options) map.connect("#{resource.path}.:format", create_action_options) end