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
travers e_to_controller' from generated/routing/recognition.rb:7:inrecognize_path’
from (irb):7
from :0

However this works.

rs.generate :controller => ‘user’, :action => ‘login’
=> ["/user/login", []]

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

I’m running Rails 1.1.6