From 18b46f7dd63e88fc77344e9e5302fa4dbbe622aa Mon Sep 17 00:00:00 2001 From: Darragh Curran Date: Mon, 28 Sep 2009 16:09:10 +0100 Subject: [PATCH] fix small bug in message for RoutingError, was using hardcoded 'content_url' instead of refering a particular route --- .../lib/action_controller/routing/route_set.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/actionpack/lib/action_controller/routing/route_set.rb b/actionpack/lib/action_controller/routing/route_set.rb index 25fdbf4..ef49b1f 100644 --- a/actionpack/lib/action_controller/routing/route_set.rb +++ b/actionpack/lib/action_controller/routing/route_set.rb @@ -430,7 +430,7 @@ module ActionController else required_segments = named_route.segments.select {|seg| (!seg.optional?) && (!seg.is_a?(DividerSegment)) } required_keys_or_values = required_segments.map { |seg| seg.key rescue seg.value } # we want either the key or the value from the segment - raise RoutingError, "#{named_route_name}_url failed to generate from #{options.inspect} - you may have ambiguous routes, or you may need to supply additional parameters for this route. content_url has the following required parameters: #{required_keys_or_values.inspect} - are they all satisfied?" + raise RoutingError, "#{named_route_name}_url failed to generate from #{options.inspect} - you may have ambiguous routes, or you may need to supply additional parameters for this route. #{named_route_name}_url has the following required parameters: #{required_keys_or_values.inspect} - are they all satisfied?" end end -- 1.6.3.2