Browse files

Fixed routing to allow for testing of *path components #1650 [Nichola…

…s Seckar]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1762 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 703ac4c commit b9b6cb95d3c7a6f623c2b328ae2cf8b3e2a05ef1 @dhh dhh committed Jul 7, 2005
Showing with 3 additions and 1 deletion.
  1. +2 −0 actionpack/CHANGELOG
  2. +1 −1 actionpack/lib/action_controller/test_process.rb
View
2 actionpack/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*
+* Fixed routing to allow for testing of *path components #1650 [Nicholas Seckar]
+
* Added :handle as an option to sortable_element to restrict the drag handle to a given class #1642 [thejohnny]
* Added a bunch of script.aculo.us features: Effect.ScrollTo, to smoothly scroll the page to an element, better Firefox flickering handling on SlideUp/SlideDown, Removed a possible memory leak in IE with draggables, Added support for cancelling dragging my hitting ESC #1644 [Thomas Fuchs]
View
2 actionpack/lib/action_controller/test_process.rb
@@ -75,7 +75,7 @@ def assign_parameters(controller_path, action, parameters)
if extra_keys.include?(key.to_sym)
non_path_parameters[key] = value
else
- path_parameters[key] = value.to_s
+ path_parameters[key] = value.is_a?(Fixnum) ? value.to_s : value
end
end
end

0 comments on commit b9b6cb9

Please sign in to comment.