Rails Error When Accessing New Controller

  • I have configured an Apache1.3 box with Ruby on Rails. As far as I
    can tell, everything is installed properly… and I thought (up until
    now) that everything was configured properly.

  • I can go to http://serveraddress/ and see the “Welcome aboard
    You’re riding the Rails!” screen with logo and links and getting
    started info.

  • I created a controller and saved it:

app/controllers/mytest_controller.rb


class MytestController < ApplicationController
def index
render_text “Hello World”
end
end

Application error

Change this error message for exceptions thrown outside of an action
(like in Dispatcher setups or broken Ruby code) in public/500.html

  • I found some data in log/development.log:

Recognition failed for “/Mytest/”
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/routing.rb:522:in
recognition_failed' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/routing.rb:512:in recognize!’
/usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:38:in
`dispatch’
/usr/local/apache/htdocs/codebasetech.com-ruby/cookbook/public/dispatch.cgi:10

Can anyone help me troubleshoot/fix this problem? It seems like I am
close to being able to learn/use Ruby and Ruby on Rails. I’m not sure
what to ask but hope the information I have provided is enough for us
to get started. Thanks in advance for any help.

Vince

Just FYI. I found my problem. I had installed mod fastcgi but not the
regular base fcgi… not sure if gem install fcgi was ran or not. . . ran
it
again as well just to be sure. Now I am getting a routing error, which
is
expected now since I deleted the controller file I was calling before.
Hope
this helps a noob in the future.