1

I have imported a existing project of Ruby on Rails, to start application i did

Buldle install
rails server

I got server running, when i launch localhost:3000 it should open my root page. But i am getting following error:

Completed 200 OK in 18ms (Views: 17.0ms) [2013-08-05 11:52:36] WARN Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true

please, let me know if i am missing anything?

ANUP
  • 185
  • 1
  • 5
  • 14
  • 2
    possible duplicate of [WARN Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true](http://stackoverflow.com/questions/9612618/warn-could-not-determine-content-length-of-response-body-set-content-length-of) – Sushil Aug 05 '13 at 19:08
  • The other SO question will address the warning, but that is unlikely to be related to why you're not seeing your root page. – Peter Alfvin Aug 05 '13 at 19:22
  • @sushithle - i tried solution mention on this page but still unable to see content. – ANUP Aug 05 '13 at 20:08
  • you should check in your routes file which layout is rendered and if the layout file actually does render something but a blank page. – jethroo Aug 05 '13 at 20:13
  • You should first remove the public/index.html and set a root path in config/routes.rb like this: `root to: 'home#index'`, then restart the server, clear you browser cache and try again. Hope this helps. – Sushil Aug 06 '13 at 03:15
  • got it working, it was due to JS missing file. – ANUP Aug 06 '13 at 20:48
  • possible duplicate of [What does "WARN Could not determine content-length of response body." mean and how to I get rid of it?](http://stackoverflow.com/questions/7082364/what-does-warn-could-not-determine-content-length-of-response-body-mean-and-h) – laffuste Mar 12 '14 at 15:43

1 Answers1

2

I had this problem and solved it by adding gem 'thin' in Gemfile, then running the command bundle and starting the server with 'rails server' command.

starsplusplus
  • 1,232
  • 3
  • 19
  • 32