Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.1.1
-
Fix Version/s: JRuby 1.4
-
Component/s: Core Classes/Modules
-
Labels:None
-
Number of attachments :
Description
I added a new (failing) rubyspec for this:
http://github.com/brixen/rubyspec/commit/799fd9dc4e9b6d731d4d789687ee46d2949c3270
Rails routing is affected by this bug:
http://www.nabble.com/Routing-problem-with-JRuby-Rails-to17227507.html#a17227507
Steps to reproduce the routing problem:
> ActionController::Routing::Routes.recognize_path('/thingy/subthingy', { :method => :get })
=> This recognizes controller => 'thingy', action => 'subthingy'
=> It should recognize controller => 'thingy/subthingy'
See the debug results on the mailing list page.
- Create an empty rails app
- script/generate controller thingy
- script/generate cotnroller thing/subthingy
- script/console
> ActionController::Routing::Routes.recognize_path('/thingy/subthingy', { :method => :get })
=> This recognizes controller => 'thingy', action => 'subthingy' => It should recognize controller => 'thingy/subthingy' See the debug results on the mailing list page.