# File lib/merb-core/dispatch/router/resources.rb, line 275 def register_resource(*key) options = extract_options_from_args!(key) || {} key = [ @options[:resource_prefix], key ].flatten.compact identifiers = [ @options[:parent_keys], options[:identifiers] ] @route.resource = key @route.resource_identifiers = identifiers.flatten.compact.map { |id| id.to_sym } self end