Newbies here need help

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!!!

On 9/21/06, Leon_A [email protected] wrote:

Thanks and more power to us!!!
You’ll need to post details if you want some help.

Curt

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…

On 9/22/06, Leon_A [email protected] wrote:

class MyTestController < applicationcontroller
def index
render_text “Hello Leonardo Asunan”
end
end

render_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