Forum: Ruby on Rails webrick RoutingError

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Cac068c9c92719a59db960b2fa51719c?d=identicon&s=25 Iphan Iphan (iphan)
on 2006-03-07 19:30
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
455ac2a64d06dc8461f4d258d7f7e980?d=identicon&s=25 Michael Trier (Guest)
on 2006-03-07 22:00
(Received via mailing list)
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
Cac068c9c92719a59db960b2fa51719c?d=identicon&s=25 Iphan Iphan (iphan)
on 2006-03-08 11:16
thanks so much Michael for answering my silly question and solving my
problem!
This topic is locked and can not be replied to.