tried restarting the server....same problem
Main Topics
Browse All TopicsI'm working through the tutorial "Rolling with Ruby on Rails" by OReilly Media and I've done everything they said except the Hello World page comes up with a "No route matches "/MyTest/" with {:method=>:get}" error when I run "http://127.0.0.1:3000/MyT
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
jpking.
Can you please cut and paste the following data here:
Change into your rails root, and type "rake routes". Send me this.
Send me the contents of your config/routes.rb file
Send me the contents of the mytest_controller.rb file
Also, what version of Rails are you using?
The problem most likely is that the Rolling with Rails tutorial, uses an old version of Rails, I doubt it is hooked up right.
Regards
Mikel
Actually, don't worry about sending me all that stuff. I just re-read the Riding with Rails tutorial.
You need to navigate to:
http://127.0.0.1:3000/my_t
Instead of /MyTest
This is due to a change in the way rails routes requests since the Riding with Rails tutorial was written.
If you check out the config/routes.rb file, you will see at the end, a line that looks like this:
map.connect ':controller/:action/:id'
This is a default route. It tries to map whatever you give it to a controller, then a slash and then look for an ID.
So if you gave it /my_test/show/1 It would look for a controller called "my_test" and an action in the controller called "show" and an put a value of "1" in the parameters hash (you'll learn about that later).
Hope that helps.
Regards
Mikel
Business Accounts
Answer for Membership
by: doadesPosted on 2009-01-26 at 09:09:31ID: 23468515
have you tried to stop and start the server again?
this can often happen if you add a controller to the project while the server is running