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 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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs