Article:
  Rolling with Ruby on Rails
Subject:   Nice concept but no worky (routing)
Date:   2006-08-05 22:48:57
From:   mckennagene
Response to: Nice concept but no worky (routing)

I am using ruby version 1.8.4 and Rails version 1.1.4 running on Linux 2.6.8-022stab067.1-smp and I have this same problem. Has anyone found a fix for this yet? It's such a short demo (up to this point) I can't imagine more people aren't having this issue.
Full Threads Oldest First

Showing messages 1 through 4 of 4.

  • Nice concept but no worky (routing)
    2006-09-01 10:46:53  hhatterr [View]

    I am having the exact same problem. The server is running fine, but things break while following the "Controllers and URL" section. BTW, when I try to load the URL http://127.0.0.1:3000/garbage/ as instructed in the tutorial, I get the message
    "Routing Error
    Recognition failed for "/garbage/" "

    Instead of the expected
    " Not Found
    '/garbage/' not found
    --------------------------
    WEBrick 1.3.1 "...

    I am using ruby 1.8.4 on x86-64 linux.
    Any ideas ?
    • Nice concept but no worky (routing) -- Solution
      2006-09-01 16:14:53  hhatterr [View]

      You have to be very careful about case here.
      Using "http://127.0.0.1:3000/mytest/" works for me. The ruby command was
      "ruby script/generate controller Mytest"
      Note that the controller "Mytest" translates to an all lowerc ase "mytest" in the URL.
    • Curt Hibbs photo Nice concept but no worky (routing)
      2006-09-01 11:24:31  Curt Hibbs | O'Reilly AuthorO'Reilly Blogger [View]

      In recent versions of Rails there have changed the error message. This is, in fact, the error that you should not receive.
      • Curt Hibbs photo Nice concept but no worky (routing)
        2006-09-01 11:46:12  Curt Hibbs | O'Reilly AuthorO'Reilly Blogger [View]

        Boy, did I screw up that response!

        It should have said that this is, in fact, the error message that you *should* receive.