操作系统 win 7 ruby 1.9.3 rails 3.2.11 执行过程: rails new blog rake db:create rails server 可以看到 welcome aboard rails server -e production 页面内容是:
The page you were looking for doesn't exist. You may have mistyped the address or the page may have moved. 命令行下的信息: D:\workspace\railsDemo\t1>rails s -e production => Booting WEBrick => Rails 3.2.11 application starting in production on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server [2013-01-12 00:16:44] INFO WEBrick 1.3.1 [2013-01-12 00:16:44] INFO ruby 1.9.3 (2012-11-10) [i386-mingw32] [2013-01-12 00:16:44] INFO WEBrick::HTTPServer#start: pid=8804 port=3000 Started GET "/" for 127.0.0.1 at 2013-01-12 00:16:47 +0800 Connecting to database specified by database.yml
ActionController::RoutingError (No route matches [GET] "/"):
actionpack (3.2.11) lib/action_dispatch/middleware/debug_exceptions.rb:21:in
call'
actionpack (3.2.11) lib/action_dispatch/middleware/show_exceptions.rb:56:in
c
all'
railties (3.2.11) lib/rails/rack/logger.rb:32:in call_app'
railties (3.2.11) lib/rails/rack/logger.rb:16:in
block in call'
activesupport (3.2.11) lib/active_support/tagged_logging.rb:22:in tagged'
railties (3.2.11) lib/rails/rack/logger.rb:16:in
call'
actionpack (3.2.11) lib/action_dispatch/middleware/request_id.rb:22:in call'
rack (1.4.3) lib/rack/methodoverride.rb:21:in
call'
rack (1.4.3) lib/rack/runtime.rb:17:in call'
activesupport (3.2.11) lib/active_support/cache/strategy/local_cache.rb:72:in
call'
rack (1.4.3) lib/rack/lock.rb:15:in call'
rack-cache (1.2) lib/rack/cache/context.rb:136:in
forward'
rack-cache (1.2) lib/rack/cache/context.rb:245:in fetch'
rack-cache (1.2) lib/rack/cache/context.rb:185:in
lookup'
rack-cache (1.2) lib/rack/cache/context.rb:66:in call!'
rack-cache (1.2) lib/rack/cache/context.rb:51:in
call'
railties (3.2.11) lib/rails/engine.rb:479:in call'
railties (3.2.11) lib/rails/application.rb:223:in
call'
rack (1.4.3) lib/rack/content_length.rb:14:in call'
railties (3.2.11) lib/rails/rack/log_tailer.rb:17:in
call'
rack (1.4.3) lib/rack/handler/webrick.rb:59:in service'
d:/Ruby193/lib/ruby/1.9.1/webrick/httpserver.rb:138:in
service'
d:/Ruby193/lib/ruby/1.9.1/webrick/httpserver.rb:94:in run'
d:/Ruby193/lib/ruby/1.9.1/webrick/server.rb:191:in
block in start_thread'
Started GET "/favicon.ico" for 127.0.0.1 at 2013-01-12 00:16:48 +0800
ActionController::RoutingError (No route matches [GET] "/favicon.ico"):
actionpack (3.2.11) lib/action_dispatch/middleware/debug_exceptions.rb:21:in
call'
actionpack (3.2.11) lib/action_dispatch/middleware/show_exceptions.rb:56:in
c
all'
railties (3.2.11) lib/rails/rack/logger.rb:32:in call_app'
railties (3.2.11) lib/rails/rack/logger.rb:16:in
block in call'
activesupport (3.2.11) lib/active_support/tagged_logging.rb:22:in tagged'
railties (3.2.11) lib/rails/rack/logger.rb:16:in
call'
actionpack (3.2.11) lib/action_dispatch/middleware/request_id.rb:22:in call'
rack (1.4.3) lib/rack/methodoverride.rb:21:in
call'
rack (1.4.3) lib/rack/runtime.rb:17:in call'
activesupport (3.2.11) lib/active_support/cache/strategy/local_cache.rb:72:in
call'
rack (1.4.3) lib/rack/lock.rb:15:in call'
rack-cache (1.2) lib/rack/cache/context.rb:136:in
forward'
rack-cache (1.2) lib/rack/cache/context.rb:245:in fetch'
rack-cache (1.2) lib/rack/cache/context.rb:185:in
lookup'
rack-cache (1.2) lib/rack/cache/context.rb:66:in call!'
rack-cache (1.2) lib/rack/cache/context.rb:51:in
call'
railties (3.2.11) lib/rails/engine.rb:479:in call'
railties (3.2.11) lib/rails/application.rb:223:in
call'
rack (1.4.3) lib/rack/content_length.rb:14:in call'
railties (3.2.11) lib/rails/rack/log_tailer.rb:17:in
call'
rack (1.4.3) lib/rack/handler/webrick.rb:59:in service'
d:/Ruby193/lib/ruby/1.9.1/webrick/httpserver.rb:138:in
service'
d:/Ruby193/lib/ruby/1.9.1/webrick/httpserver.rb:94:in run'
d:/Ruby193/lib/ruby/1.9.1/webrick/server.rb:191:in
block in start_thread'