hi guys! i just tried ruby today and follow the examples in Rolling w/ Ruby on Rails by Mr. Hibbs on how to edit MyTest Controller and i got an error.. Please help me.. Thanks and more power to us!!! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On 9/21/06, Leon_A <leon2126-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > hi guys! > > i just tried ruby today and follow the examples in Rolling w/ Ruby on > Rails by Mr. Hibbs on > how to edit MyTest Controller and i got an error.. > > Please help me.. > > Thanks and more power to us!!!You''ll need to post details if you want some help. Curt --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
ok this is what happened: 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 Leonardo Asunan" end end i run my browser on http://127.0.0.1:3000/MyTest and i got: Routing Error Recognition failed for "/MyTest/" Whats wrong with my code? help me please.. thanks idol.. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On 9/22/06, Leon_A <leon2126-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > ok this is what happened: 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 Leonardo Asunan" > end > endrender_text should be render :text => "Hello Leonardo Asunan" i run my browser on http://127.0.0.1:3000/MyTest and i got: Point it at http://127.0.0.1:3000/my_test Your routes do not use the camel cased name for controllers. You need to use underscores_between_words class MyBigBoxOfGoodiesTestController will map to my_big_box_of_goodies_test in a url Routing Error> Recognition failed for "/MyTest/" > > Whats wrong with my code? help me please.. > > thanks idol.. >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---