Strange Rails/Postgres/WEBrick messages

I’m on Ruby1.9.3/Rails3.2.6, Postgres 9.1.3, WEBrick 1.31.

I’m a newbie and am over half way through the excellent Michael H.
I’m having several issues and not sure if they’re interrelated:

  1. When I navigate in my browser (in WEBrick), each time I navigate to a
    different page on the site I’m building, I get about 10-15 messages all
    saying the same thing (coming from it looks like pretty much every file
    (both the standard files [eg. like jquery, etc], and my custom .css.scss
    files) in my assets/javascripts and assets/stylesheets folders (I don’t
    have any images in the assets/images folder):

304 Not Modified (
WARN Could not determine content-length of response body. Set
content-length of the response or set Response#chunked = true

  1. All my pages look good in the browser except an “Update your profile”
    page. The view (and debug box I added) look totally gobblygook. I tried
    re-typing the entire code for the corresponding
    app/views/users/edit.html.erb file but it still looks the same.

  2. In an effort to trouble shoot, I exited the Terminal (to reset), then
    did a
    $ bundle exec rake db:test:prepare
    and in the process discovered my postgres server returned:
    FATAL : database “rhgb_test” does not exist.
    I tried it again, got the same message so I’m pretty sure it’s related
    I entered my postgres db, did a \l (to get the list of dbs) and it
    shows I do have “rhgb_test” along with the corresponding

  3. When #3 above happened, it reminded me that a few days earlier I did
    rspec test, which had a long command so I wanted to put it on two lines
    with a \ to start the new line (and finish the rest of the
    I accidentally entered a / instead (newbie mistake) and, before I
    realized what I had done, I had pressed “enter” and found myself in “no
    man’s land” with no prompt or anything and I couldn’t get out of it. I
    CNTL + d + Enter
    CNTL + c + Enter
    nothing helped. So I just closed out of Terminal by closing the window,
    then relaunched, entered the rspec test I wanted to do and when I looked
    my postgres server it said:
    FATAL: database “rhgb_test” does not exist
    Everything seemed to work fine (tests worked, etc) so I continued with
    I was doing, but then a day or two after that, I noticed, when shutting
    down, my postgres server said:
    FATAL: database “rhgb_test” does not exist
    WARNING: corrupted statistics file “pg_stat_tmp/pgstat.stat” # (I
    good notes since I’m learning :slight_smile:

My question:

  1. could I have somehow corrupted my file when I entered that rspec test
    command with a / instead of a \ ?
  2. is it possible to somehow fix that? (e.g. did it possibly cause some
    sort of weird command internally that’s now messing things up, that I
  3. if I can correct it, how do I do this?
  4. if I can’t correct it, would it be best for me to just drop the
    two dbs (“rhgb_test” and its corresponding “rhgb_development”) and start
    from scratch? (I only have a few test users and only 3 tables in the db
    the moment). Or, will that “weird command” live on, even with a new db?
  5. do you think this may be related to the strange “view” file (“Update
    your profile”) that I mentioned above? And the strange WEBrick -0500
    multiple messages I receive every time I navigate to a new page in the

Would greatly appreciate anyone’s help,