Commit 063c393bf0a2eb762770c97f925b7c2867361ad4 introduce bug with resource routes when member and path_names specified.
For example:
map.routes :messages, :path_names => {:new => 'nuevo'}, :member => {:mark => :put}
and resources.rb lines 526-533
action_options = action_options_for(action, resource, method)
action_path = action
if resource.options[:path_names]
action_path = resource.options[:path_names][action]
action_path ||= Base.resources_path_names[action]
end
map.named_route("#{action}_#{resource.name_prefix}#{resource.singular}", "#{resource.member_path}#{resource.action_separator}#{action_path}", action_options)
Since :mark not in :path_names nor resources_path_names, it became nil,
and named_route tries to map /messages/:id to mark_messages_path.