method
map_default_collection_actions
map_default_collection_actions(map, resource)
private
Hide source
# File actionpack/lib/action_controller/resources.rb, line 333 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) create_action_options = action_options_for("create", resource) map.connect(resource.path, create_action_options) map.connect("#{resource.path}.:format", create_action_options) end

