Article:
  Rolling with Ruby on Rails
Subject:   Nice concept but no worky (routing)
Date:   2005-07-10 14:39:14
From:   RGM
I have run this setup on two different Windows boxes at home (WinXP Pro and Win2K Sever) and both fail at running even the test controller. I have tried MyTest, My_Test, mytest, my_test and a couple other permutations on both boxes to no avail. I do see the index page after starting the server though so that would not appear to be the problem. I don't understand how the routing is taking place or I might be able to trouble my way through my issue. I have even tried to overlay the downloaded source on my directory but it simply and consistently gives me a routing error of recognition failed.


If anyone can help point me in the right direction I would be grateful. The concepts are intriguing but won't be any more if I can't make them concrete.

Full Threads Oldest First

Showing messages 1 through 9 of 9.

  • Nice concept but no worky (routing)
    2006-08-05 22:48:57  mckennagene [View]

    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.
    • 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.
  • Curt Hibbs photo Nice concept but no worky (routing)
    2005-07-10 15:46:59  Curt Hibbs | O'Reilly AuthorO'Reilly Blogger [View]

    In part 2 of the article () in the section title "Completing the Recipe Application", there is a link to the source code for part 1 and the SQL to create the database for part 1.

    Give this a try and see if that works for you. I just ran it myself under the newly release Rails 0.13 and it worked just fine for me.
    • Nice concept but no worky (routing)
      2005-07-10 18:21:31  RGM [View]

      I did try that on both boxes before posting as I had read the reccomendation below. I have wiped out the whole install on the XP box as well. The instructions are relatively simple so I don't think I am porking anything there. Maybe a conflict with .NET as both machines are used for .NET development. I may try on one more non dev box before I give it the pass. Pity really as it sounds clean.
      • Curt Hibbs photo Nice concept but no worky (routing)
        2005-07-10 20:24:46  Curt Hibbs | O'Reilly AuthorO'Reilly Blogger [View]

        I'm stumped then. Only thing I can think of is that there is some kind of conflict with something else that is installed. But without knowing what, that supposition doesn't do you any good. Sorry.
        • Nice concept but no worky (routing)
          2005-07-15 12:52:48  zsmirnoff [View]

          Hi, are you sure that the server is running - check your ports - it should be on the port 3000
          ( download application like fports.exe if you do not have one)