I downloaded Ruby, gem, and mysql and followed your tutorial. I also checked other postings on routing error andf followed ''Leon A'' sugggestion to a similar problem. I successfully install ruby and gem according to your instruction in "Rolling w/ Ruby on Rails book in http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html?page=2, i create: ruby script\generate controller Mytest which opens SciTE editor and i type: class MytestController < ApplicationController def index render_text => "Hello World" end end i run my firefox browser on http://127.0.0.1:3000/MyTest and i get: Routing Error Recognition failed for "/My_Test/" Please help my environment is win XP sp2 firefox 1.5 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Don''t put caps in the middle of a word unless you want Rails to put an _Underscore between the words. try mytest analyst wrote:> I downloaded Ruby, gem, and mysql and followed your tutorial. I also > checked other postings on routing error andf followed ''Leon A'' > sugggestion to a similar problem. > > > I successfully install ruby and gem according to your instruction in > "Rolling w/ Ruby on Rails book in > http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html?page=2, > > i create: > ruby script\generate controller Mytest > > which opens SciTE editor and i type: > > class MytestController < ApplicationController > def index > render_text => "Hello World" > end > end > > > i run my firefox browser on http://127.0.0.1:3000/MyTest and i get: > > Routing Error > > Recognition failed for "/My_Test/" > > Please help > > my environment is > win XP sp2 > firefox 1.5 > > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
your suggestion caused me to look at how I was handling caps/nocaps throughout, and I saw that i wasnt consistent when i ran the command - ruby script\generate controller Mytest i re-ran the ruby script making sure I matched case I also got rid of the ''=>'' assignment operator as it was causing a sytax error the corrected script below called ''mytest_controlled.rb'' myworked ; class MyTestController < ApplicationController def index render_text "hello World!" end end thanks so much for your prompt reply. I was going to throw ruby out the window, just like i did with php. instead, I am now more motivated to continue with the tutorial and learn the tool so I can build my first website , in order to promote my company --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---