datboitom
2008-Sep-23 06:32 UTC
Help with "No route matches "/MyTest/" with {:method=>:get}"
I just started working with Ruby. Anyways I can''t seem to figure out how to have this message disappear. I was reading a tutorial and based on it, when I type in http://localhost:3000/MyTest/ it should say whatever I have written down on my my_test_controller.rb file. I first ran: ruby script\generate controller MyTest then I edited the my_test_controller.rb file It currently says: ------- class MyTestController < ApplicationController def index render_text "Please Help" end end ------- I removed the index file from the public folder also. Can anyone give me some quick advice for how I can get this to show up? I also have not edited the routes.rb file and I am running on a Mac. --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
zuo peng
2008-Sep-23 07:57 UTC
Re: Help with "No route matches "/MyTest/" with {:method=>:get}"
try http://localhost:3000/my_test/ On Tue, Sep 23, 2008 at 2:32 PM, datboitom <datboitom-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > I just started working with Ruby. Anyways I can''t seem to figure out > how to have this message disappear. I was reading a tutorial and based > on it, when I type in http://localhost:3000/MyTest/ it should say > whatever I have written down on my my_test_controller.rb file. > > I first ran: ruby script\generate controller MyTest > > then I edited the my_test_controller.rb file > > It currently says: > ------- > class MyTestController < ApplicationController > def index > render_text "Please Help" > end > end > ------- > > I removed the index file from the public folder also. > > Can anyone give me some quick advice for how I can get this to show > up? > > I also have not edited the routes.rb file and I am running on a Mac. > > > >-- Christopher Marlowe - "Money can''t buy love, but it improves your bargaining position." --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---