# File lib/pickle/path.rb, line 14 def path_to_pickle(*pickle_names) options = pickle_names.extract_options! resources = pickle_names.map{|n| model(n) || n.to_sym} if options[:extra] parts = options[:extra].underscore.gsub(' ','_').split("_") find_pickle_path_using_action_segment_combinations(resources, parts) else pickle_path_for_resources_action_segment(resources, options[:action], options[:segment]) end or raise "Could not figure out a path for #{pickle_names.inspect} #{options.inspect}" end