M
Mehr, Assaph (Assaph)
------_=_NextPart_001_01C47609.93FDE881
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Hi,
=20
I have followed the steps detailed in the Rails tutorial, but can't seem
to get it to work
During the tests phase (step 5) i get:
=20
[root@fox rails]# rake
(in /opt/rails)
ruby -Ilib:test -e0 \
-rtest/unit/person_test
/test/unit/../../vendor/railties/../../vendor/activerecord/lib/active_r
ecord/support/class_inheritable_attributes.rb:28:in `class_eval':
(eval):1:in `class_eval': uninitialized class variable
@@inheritable_attributes_for_base in Person (NameError)
from
/test/unit/../../vendor/railties/../../vendor/activerecord/lib/active_r
ecord/support/class_inheritable_attributes.rb:28:in `class_eval'
from
/test/unit/../../vendor/railties/../../vendor/activerecord/lib/active_r
ecord/support/class_inheritable_attributes.rb:28:in `inherited'
from
/test/unit/../../vendor/railties/../../app/models/person.rb:3
from ./test/unit/person_test.rb:2:in `require'
from ./test/unit/person_test.rb:2
rake aborted!
Command Failed: [ruby -Ilib:test -e0 \
-rtest/unit/person_test]
=20
And if I try to point my browser to
http://myhost.mycompany/friends/display I get a 404 and the command line
reports the follwoing error:
=20
#<WEBrick::HTTPStatus::NotFound: `/friends/display' not found.>
/../vendor/railties/../../vendor/actionpack/lib/action_controller/suppo
rt/class_inheritable_attributes.rb:27:in `class_eval': (eval):1:in
`class_eval': uninitialized class variable
@@inheritable_attributes_for_base in
CGI::Session::ActiveRecordStore::Session (NameError)
from
/../vendor/railties/../../vendor/actionpack/lib/action_controller/suppo
rt/class_inheritable_attributes.rb:27:in `class_eval'
from
/../vendor/railties/../../vendor/actionpack/lib/action_controller/suppo
rt/class_inheritable_attributes.rb:27:in `inherited'
from
/../vendor/railties/../../vendor/actionpack/lib/action_controller/sessi
on/active_record_store.rb:18
from
/../vendor/railties/../../vendor/actionpack/lib/action_controller/cgi_p
rocess.rb:3:in `require'
from
/../vendor/railties/../../vendor/actionpack/lib/action_controller/cgi_p
rocess.rb:3
from
/../vendor/railties/../../vendor/actionpack/lib/action_controller.rb:35
:in `require'
from
/../vendor/railties/../../vendor/actionpack/lib/action_controller.rb:35
from
/../vendor/railties/../../vendor/railties/dispatcher.rb:25:in `require'
from ./../vendor/railties/../../vendor/railties/dispatcher.rb:25
from ./dispatch.rb:4:in `require'
from ./dispatch.rb:4
from /opt/rails/public/dispatch.rb:1:in `load'
from /opt/rails/public/dispatch.rb:1
from -:9
#<NoMethodError: undefined method `each' for nil:NilClass>
["/usr/local/lib/ruby/1.9/webrick/httputils.rb:130:in `parse_header'",
"./public/../vendor/railties/../../vendor/railties/webrick_server.rb:128
:in `handle_dispatch'",
"./public/../vendor/railties/../../vendor/railties/webrick_server.rb:83:
in `handle_mapped'",
"./public/../vendor/railties/../../vendor/railties/webrick_server.rb:30:
in `do_GET'",
"/usr/local/lib/ruby/1.9/webrick/httpservlet/abstract.rb:35:in
`__send__'",
"/usr/local/lib/ruby/1.9/webrick/httpservlet/abstract.rb:35:in
`service'", "/usr/local/lib/ruby/1.9/webrick/httpserver.rb:101:in
`service'", "/usr/local/lib/ruby/1.9/webrick/httpserver.rb:62:in `run'",
"/usr/local/lib/ruby/1.9/webrick/server.rb:153:in `start_thread'",
"/usr/local/lib/ruby/1.9/webrick/server.rb:147:in `start'",
"/usr/local/lib/ruby/1.9/webrick/server.rb:147:in `start_thread'",
"/usr/local/lib/ruby/1.9/webrick/server.rb:97:in `start'",
"/usr/local/lib/ruby/1.9/webrick/server.rb:89:in `each'",
"/usr/local/lib/ruby/1.9/webrick/server.rb:89:in `start'",
"/usr/local/lib/ruby/1.9/webrick/server.rb:79:in `start'",
"/usr/local/lib/ruby/1.9/webrick/server.rb:79:in `start'",
"./public/../vendor/railties/../../vendor/railties/webrick_server.rb:17:
in `dispatch'", "public/dispatch.servlet:42"]
[2004-07-30 17:38:24] ERROR `/friends/display' not found.
::ffff:127.0.0.1 - - [30/Jul/2004:17:38:22 EST] "GET /friends/display
HTTP/1.1" 404 295
- -> /friends/display
=20
=20
Some system information:
Linux fox 2.6.5-1.358 #1 Sat May 8 09:04:50 EDT 2004 i686 i686 i386
GNU/Linux (Fedora Core 2)
ruby 1.9.0 (2004-07-29[i686-linux]
mysql Ver 11.18 Distrib 3.23.58, for redhat-linux-gnu (i386)
=20
I have run rails through WEBrick ("ruby public/dispatch.servlet -a -p
80"). My browser has (must have) proxy settings, but should ignore it
for local addresses. I can get the "welcome to rails" page, but nothing
else.
=20
One wierdness with the exception aboce is that it's looking for
@@inheritable_attributes_for_base. I saw that the
@@inheritable_attributes_for_XXX is dynamically generated, but no idea
where the "base" part came from.=20
=20
Any ideas?
=20
Cheers,
Assaph
_____ =20
Assaph Mehr=20
Email: (e-mail address removed)
Phone: +61-2-9352 9247
Fax: +61-2-9352 9247 Auslabs (Avaya Labs Australia)
Level 3, 123 Epping Rd, North Ryde, NSW 2113
Web: http://www.avaya.com <http://www.avaya.com/> =20
_____ =20
=20
------_=_NextPart_001_01C47609.93FDE881--
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Hi,
=20
I have followed the steps detailed in the Rails tutorial, but can't seem
to get it to work
During the tests phase (step 5) i get:
=20
[root@fox rails]# rake
(in /opt/rails)
ruby -Ilib:test -e0 \
-rtest/unit/person_test
/test/unit/../../vendor/railties/../../vendor/activerecord/lib/active_r
ecord/support/class_inheritable_attributes.rb:28:in `class_eval':
(eval):1:in `class_eval': uninitialized class variable
@@inheritable_attributes_for_base in Person (NameError)
from
/test/unit/../../vendor/railties/../../vendor/activerecord/lib/active_r
ecord/support/class_inheritable_attributes.rb:28:in `class_eval'
from
/test/unit/../../vendor/railties/../../vendor/activerecord/lib/active_r
ecord/support/class_inheritable_attributes.rb:28:in `inherited'
from
/test/unit/../../vendor/railties/../../app/models/person.rb:3
from ./test/unit/person_test.rb:2:in `require'
from ./test/unit/person_test.rb:2
rake aborted!
Command Failed: [ruby -Ilib:test -e0 \
-rtest/unit/person_test]
=20
And if I try to point my browser to
http://myhost.mycompany/friends/display I get a 404 and the command line
reports the follwoing error:
=20
#<WEBrick::HTTPStatus::NotFound: `/friends/display' not found.>
/../vendor/railties/../../vendor/actionpack/lib/action_controller/suppo
rt/class_inheritable_attributes.rb:27:in `class_eval': (eval):1:in
`class_eval': uninitialized class variable
@@inheritable_attributes_for_base in
CGI::Session::ActiveRecordStore::Session (NameError)
from
/../vendor/railties/../../vendor/actionpack/lib/action_controller/suppo
rt/class_inheritable_attributes.rb:27:in `class_eval'
from
/../vendor/railties/../../vendor/actionpack/lib/action_controller/suppo
rt/class_inheritable_attributes.rb:27:in `inherited'
from
/../vendor/railties/../../vendor/actionpack/lib/action_controller/sessi
on/active_record_store.rb:18
from
/../vendor/railties/../../vendor/actionpack/lib/action_controller/cgi_p
rocess.rb:3:in `require'
from
/../vendor/railties/../../vendor/actionpack/lib/action_controller/cgi_p
rocess.rb:3
from
/../vendor/railties/../../vendor/actionpack/lib/action_controller.rb:35
:in `require'
from
/../vendor/railties/../../vendor/actionpack/lib/action_controller.rb:35
from
/../vendor/railties/../../vendor/railties/dispatcher.rb:25:in `require'
from ./../vendor/railties/../../vendor/railties/dispatcher.rb:25
from ./dispatch.rb:4:in `require'
from ./dispatch.rb:4
from /opt/rails/public/dispatch.rb:1:in `load'
from /opt/rails/public/dispatch.rb:1
from -:9
#<NoMethodError: undefined method `each' for nil:NilClass>
["/usr/local/lib/ruby/1.9/webrick/httputils.rb:130:in `parse_header'",
"./public/../vendor/railties/../../vendor/railties/webrick_server.rb:128
:in `handle_dispatch'",
"./public/../vendor/railties/../../vendor/railties/webrick_server.rb:83:
in `handle_mapped'",
"./public/../vendor/railties/../../vendor/railties/webrick_server.rb:30:
in `do_GET'",
"/usr/local/lib/ruby/1.9/webrick/httpservlet/abstract.rb:35:in
`__send__'",
"/usr/local/lib/ruby/1.9/webrick/httpservlet/abstract.rb:35:in
`service'", "/usr/local/lib/ruby/1.9/webrick/httpserver.rb:101:in
`service'", "/usr/local/lib/ruby/1.9/webrick/httpserver.rb:62:in `run'",
"/usr/local/lib/ruby/1.9/webrick/server.rb:153:in `start_thread'",
"/usr/local/lib/ruby/1.9/webrick/server.rb:147:in `start'",
"/usr/local/lib/ruby/1.9/webrick/server.rb:147:in `start_thread'",
"/usr/local/lib/ruby/1.9/webrick/server.rb:97:in `start'",
"/usr/local/lib/ruby/1.9/webrick/server.rb:89:in `each'",
"/usr/local/lib/ruby/1.9/webrick/server.rb:89:in `start'",
"/usr/local/lib/ruby/1.9/webrick/server.rb:79:in `start'",
"/usr/local/lib/ruby/1.9/webrick/server.rb:79:in `start'",
"./public/../vendor/railties/../../vendor/railties/webrick_server.rb:17:
in `dispatch'", "public/dispatch.servlet:42"]
[2004-07-30 17:38:24] ERROR `/friends/display' not found.
::ffff:127.0.0.1 - - [30/Jul/2004:17:38:22 EST] "GET /friends/display
HTTP/1.1" 404 295
- -> /friends/display
=20
=20
Some system information:
Linux fox 2.6.5-1.358 #1 Sat May 8 09:04:50 EDT 2004 i686 i686 i386
GNU/Linux (Fedora Core 2)
ruby 1.9.0 (2004-07-29[i686-linux]
mysql Ver 11.18 Distrib 3.23.58, for redhat-linux-gnu (i386)
=20
I have run rails through WEBrick ("ruby public/dispatch.servlet -a -p
80"). My browser has (must have) proxy settings, but should ignore it
for local addresses. I can get the "welcome to rails" page, but nothing
else.
=20
One wierdness with the exception aboce is that it's looking for
@@inheritable_attributes_for_base. I saw that the
@@inheritable_attributes_for_XXX is dynamically generated, but no idea
where the "base" part came from.=20
=20
Any ideas?
=20
Cheers,
Assaph
_____ =20
Assaph Mehr=20
Email: (e-mail address removed)
Phone: +61-2-9352 9247
Fax: +61-2-9352 9247 Auslabs (Avaya Labs Australia)
Level 3, 123 Epping Rd, North Ryde, NSW 2113
Web: http://www.avaya.com <http://www.avaya.com/> =20
_____ =20
=20
------_=_NextPart_001_01C47609.93FDE881--