Neeraj Kumar
2006-Oct-03 19:16 UTC
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:in `recognize_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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---