Forum: Ruby on Rails Newbie Rails problem -- ApplicationController not loading

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Robert Masters (Guest)
on 2005-11-25 10:50
I am at new at Ruby & Rails.

I am trying to follow the "make a todo list" tutorial and hitting a
weird problem.

When i try to go to localhost:3000/todo/

The file
	 /var/www/Todo/app/controllers/todo_controller.rb
gets loaded

    class TodoController < ApplicationController
      model :todo

      def index
       render_text("This is the index")
      end
    end


I don't get anything in my browser.

I get errors about "undefined class/module Hand" and I don't see the
word 'Hand' anywhere.

It doesn't look like 'ActionController" is getting loaded and I have
don't have a clue how to fix this.  (I using running on debian)

Any hints?

/Robert



Exception `ArgumentError' at /usr/lib/ruby/1.8/pstore.rb:163 - undefined
class/module Hand

Exception `MissingSourceFile' at
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.3/lib/active_support/dependencies.rb:207
- no such file to load -- hand.rb

Exception `MissingSourceFile' at
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.3/lib/active_support/dependencies.rb:210
- no such file to load -- hand.rb

Exception `MissingSourceFile' at
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.3/lib/active_support/dependencies.rb:24
- no such file to load -- hand.rb

Exception `NameError' at
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.3/lib/active_support/dependencies.rb:200
- uninitialized constant Hand

Exception `ActionController::SessionRestoreError' at
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/action_controller/cgi_process.rb:106
- Session contained objects where the class definition wasn't available.
Remember to require classes for all objects kept in the session.
(Original exception: uninitialized constant Hand [NameError])

/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/action_controller/base.rb:902:
warning: instance variable @session not initialized

/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/action_controller/base.rb:798:
warning: instance variable @view_class not initialized

/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/action_controller/cgi_process.rb:94:
warning: instance variable @session not initialized

Exception `ArgumentError' at /usr/lib/ruby/1.8/pstore.rb:163 - undefined
class/module Hand

Exception `NameError' at
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.3/lib/active_support/dependencies.rb:195
- uninitialized constant Hand

Exception `ActionController::SessionRestoreError' at
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/action_controller/cgi_process.rb:106
- Session contained objects where the class definition wasn't available.
Remember to require classes for all objects kept in the session.
(Original exception: uninitialized constant Hand [NameError])

/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/action_controller/base.rb:902:
warning: instance variable @session not initialized

Exception `NameError' at
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.3/lib/active_support/core_ext/object_and_class.rb:4
- constant Object::TodoController not defined

Exception `NameError' at
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.3/lib/active_support/core_ext/object_and_class.rb:4
- constant Object::ApplicationController not defined

127.0.0.1 - - [25/Nov/2005:00:23:33 PST] "GET /todo/index HTTP/1.1" 500
0

- -> /todo/index

Exception `WEBrick::HTTPStatus::NotModified' at
/usr/lib/ruby/1.8/webrick/httpservlet/filehandler.rb:34 -
WEBrick::HTTPStatus::NotModified

127.0.0.1 - - [25/Nov/2005:00:23:33 PST] "GET /favicon.ico HTTP/1.1" 304
0

- -> /favicon.ico

Exception `WEBrick::HTTPStatus::EOFError' at
/usr/lib/ruby/1.8/webrick/httpserver.rb:55 -
WEBrick::HTTPStatus::EOFError

Exception `WEBrick::HTTPStatus::NotModified' at
/usr/lib/ruby/1.8/webrick/httpservlet/filehandler.rb:34 -
WEBrick::HTTPStatus::NotModified

127.0.0.1 - - [25/Nov/2005:00:24:25 PST] "GET / HTTP/1.1" 304 0

- -> /

Exception `WEBrick::HTTPStatus::EOFError' at
/usr/lib/ruby/1.8/webrick/httpserver.rb:55 -
WEBrick::HTTPStatus::EOFError
This topic is locked and can not be replied to.