Women in Technology

Hear us Roar



Article:
  Rolling with Ruby on Rails
Subject:   Nice concept but no worky (routing)
Date:   2006-09-01 10:46:53
From:   hhatterr
Response to: Nice concept but no worky (routing)

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 ?

Full Threads Oldest First

Showing messages 1 through 3 of 3.

  • 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.