Anthony Baker
2/9/2005 2:59:00 AM
Hey Folks,
Am new to Ruby and Rails and am currently (finally) getting started
following a long install process on OS X 10.3.5.
All I've done so far is to create an empty controller called MyTest
using the following command:
ruby script/generate controller MyTest
Which generated the file my_test_controller.rb in the app/controllers
directory.
This is following the "Rolling with Ruby on Rails" article from Curt
Hibbs at O'Reilly. What I get is the following error and I can't seem
to figure out why this is occurring.
Processing Base#index (for 127.0.0.1 at Tue Feb 08 18:50:02 PST 2005)
Parameters: {"action"=>"index", "controller"=>"MyTest"}
LoadError (No such file to load -- mytest_controller.rb):
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.4.0/lib/
action_controller/support/dependencies.rb:38:in `load'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.4.0/lib/
action_controller/support/dependencies.rb:38:in `require_or_load'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.4.0/lib/
action_controller/support/dependencies.rb:46:in `require_or_load'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.4.0/lib/
action_controller/support/dependencies.rb:46:in `require_or_load'
/usr/local/lib/ruby/gems/1.8/gems/rails-0.9.5/lib/dispatcher.rb:38:in
`dispatch'
/Users/bigo/www/rails/cookbook/public/dispatch.cgi:10
Rendering
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.4.0/lib/
action_controller/templates/rescues/layout.rhtml (500 Internal Error)
If anyone has any pointers or solutions, I'd much appreciate it.
Thanks,
Anthony