From 4a3ec21b6261374ad58f3bc337fc8a547b6c490d Mon Sep 17 00:00:00 2001 From: Nicholas Seckar Date: Fri, 8 Jul 2005 08:45:51 +0000 Subject: Fix routes to generate proper URLs when given Fixnum defaults git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1768 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/routing.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_controller') diff --git a/actionpack/lib/action_controller/routing.rb b/actionpack/lib/action_controller/routing.rb index 41f61bdb0d..32ce0db3aa 100644 --- a/actionpack/lib/action_controller/routing.rb +++ b/actionpack/lib/action_controller/routing.rb @@ -99,7 +99,7 @@ module ActionController def default_check(g) presence = "#{g.hash_value(key, !! default)}" if default - "!(#{presence} && #{g.hash_value(key, false)} != #{default.inspect})" + "!(#{presence} && #{g.hash_value(key, false)} != #{default.to_s.inspect})" else "! #{presence}" end -- cgit v1.2.3