problem: webrick will start a rails server, but I cannot access my application. I get the error: Processing Base#index (for 127.0.0.1 at Tue Mar 07 19:16:58 CET 2006) Parameters: {} ActionController::RoutingError (Recognition failed for "/keywordeditor"): my application is called keywordeditor. I am starting the server from the correct place with the correct command (I already deployed several rails apps successfully before). I checked that the database is created with the correct tables. I ran script/generate scaffold and got all the files correctly created. Why is it not working? Could it be a problem of rails version? I am trying out act_as_tree in the model definition. The complete error: Processing Base#index (for 127.0.0.1 at Tue Mar 07 19:16:58 CET 2006) Parameters: {} ActionController::RoutingError (Recognition failed for "/keywordeditor"): /home/sun-000/SwissProt/iphan/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/routing.rb:444:in `recognition_failed'' /home/sun-000/SwissProt/iphan/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/routing.rb:434:in `recognize!'' /home/sun-000/SwissProt/iphan/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/dispatcher.rb:32:in `dispatch'' /home/sun-000/SwissProt/iphan/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/webrick_server.rb:105:in `handle_dispatch'' /home/sun-000/SwissProt/iphan/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/webrick_server.rb:71:in `service'' /home/sun-000/SwissProt/iphan/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' /home/sun-000/SwissProt/iphan/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' /home/sun-000/SwissProt/iphan/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'' /home/sun-000/SwissProt/iphan/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'' /home/sun-000/SwissProt/iphan/lib/ruby/1.8/webrick/server.rb:95:in `start'' /home/sun-000/SwissProt/iphan/lib/ruby/1.8/webrick/server.rb:92:in `start'' /home/sun-000/SwissProt/iphan/lib/ruby/1.8/webrick/server.rb:23:in `start'' /home/sun-000/SwissProt/iphan/lib/ruby/1.8/webrick/server.rb:82:in `start'' /home/sun-000/SwissProt/iphan/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/webrick_server.rb:57:in `dispatch'' ./script/server:49 -e:3 -- Posted via http://www.ruby-forum.com/.
what happens if you leave off the keywordeditor? Likely you''ll get the Welcome to Rails page. When you add the name after root it is referring to the controller name, not the application name. Thus you end up with something like: http://localhost:3000/controller/action/id If you just put up to the controller then the default action, index will be used. I hope that helps. Michael
Apparently Analagous Threads
- Routing problems - Apache proxy vs. Webrick direct
- webrick, cross-thread violation on rb_thread_schedule()
- Suppress ActionController::RoutingError in logs
- rescue_action with RoutingError not loading ApplicationController/ApplicationHelper
- All functional tests fail with RoutingError