This project is archived and is in readonly mode.
[PATCH] #controller_path returns empty string in Ruby 1.8.7
-
Szymon Nowak
- Tag changed from ruby 1.8.7, 3.0, action_controller to ruby 1.8.7, 3.0, action_controller, patch
For some strange reason in Ruby 1.8.7 at some point class.name is just an empty string, so @controller_path in AbstractController::Base is also set to an empty string.
This patch should fix this problem.
-
Szymon Nowak
- Title changed from #controller_path returns empty string in Ruby 1.8.7 to [PATCH] #controller_path returns empty string in Ruby 1.8.7
-
José Valim
- Assigned user set to José Valim
- Milestone cleared.
-
José Valim
- State changed from new to resolved
Just committed a different fix and added tests. Thanks!
-
Repository
(from [bd36418c512acb62c5515a6cbde79ce59dd67b46]) Fix controller_path returnsing an empty string in Ruby 1.8.7 [#4036 [PATCH] #controller_path returns empty string in Ruby 1.8.7 status:resolved] http://github.com/rails/rails/commit/bd36418c512acb62c5515a6cbde79c...
