rs.recognize_path "/home" is not working in script/console

My application runs fine.

I just want to change a few routing rules and I decided to test using script/console. But I’m getting following error.

Loading development environment.

rs = ActionController::Routing::Routes

rs.recognize_path “/home/index”
TypeError: can’t convert Fixnum into String
from c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/routing.rb:228:in `travers

    from generated/routing/recognition.rb:7:in `recognize_path'
    from (irb):7

However this works.

rs.generate :controller => ‘user’, :action => ‘login’

=> ["/user/login", []]

rs.generate :controller => ‘home’, :action => ‘index’
=> ["/", []]

I’m running Rails 1.1.6