rails/rails — pull request #4908 by kennyj (2012-02-06 15:47:01+00:00)
Title: Fix url_for method's behavior. GH #3684.

Fix url_for method's behavior when it is passed with :controller option which starts with "/" in a multiple nested controller. Please see a testcase, and https://github.com/rails/rails/issues/3864

```
1) Failure:
test_controller_option_which_starts_with_'/'_from_multiple_nested_controller(TestMultipleNestedController) [test/dispatch/routing_test.rb:2593]:
Expected: "/pooh"
Actual: "/foo//pooh"
```

It seems that this problem is occured on 3-1-stable, 3-2-stable, and master.

Closes #3864