Strange Error


#1

Hi!

I’m reading the ‘Agile Web D. with Rails’ book and I tried to
write the depot application. But almost at the beginning everything
goes wrong and my application doesn’t work. When I try to open
http://localhost:3000/admin with my Firefox, a blank site comes up. This
is the first mistake. And then the window of my WEBrick shows some
strange error - messages (see below). What’s wrong an what can I do to
fix this problem?

Thanks in advance ALEX

WEBrick - window:

[2006-03-01 14:31:14] INFO WEBrick 1.3.1
[2006-03-01 14:31:14] INFO ruby 1.8.3 (2005-06-23) [i486-linux]
[2006-03-01 14:31:14] INFO WEBrick::HTTPServer#start: pid=8236
port=3000
127.0.0.1 - - [01/Mar/2006:14:31:35 CET] “GET /admin HTTP/1.1” 200 0

  • -> /admin
    [2006-03-01 14:31:36] ERROR MissingSourceFile: no such file to load –
    irb
    /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:21:in
    require__' /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:21:inrequire’
    /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:214:in
    require' /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/breakpoint.rb:18 /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:207:inload’
    /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:39:in
    require_or_load' /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:22:independ_on’
    /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:178:in
    require_dependency' /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:178:inrequire_dependency’
    /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:194:in
    const_missing' /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/dispatcher.rb:77:inreset_after_dispatch’
    /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/dispatcher.rb:46:in
    dispatch' /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/webrick_server.rb:117:inhandle_dispatch’
    /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/webrick_server.rb:83:in
    service' /usr/lib/ruby/1.8/webrick/httpserver.rb:104:inservice’
    /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in run' /usr/lib/ruby/1.8/webrick/server.rb:172:instart_thread’
    /usr/lib/ruby/1.8/webrick/server.rb:161:in start' /usr/lib/ruby/1.8/webrick/server.rb:161:instart_thread’
    /usr/lib/ruby/1.8/webrick/server.rb:95:in start' /usr/lib/ruby/1.8/webrick/server.rb:92:ineach’
    /usr/lib/ruby/1.8/webrick/server.rb:92:in start' /usr/lib/ruby/1.8/webrick/server.rb:82:instart’
    /usr/lib/ruby/1.8/webrick/server.rb:82:in start' /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/webrick_server.rb:69:indispatch’
    /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/commands/servers/webrick.rb:59
    /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:21:in
    require' /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:214:inrequire’
    /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/commands/server.rb:28
    /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:21:in
    require' /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:214:inrequire’
    script/server:3
    127.0.0.1 - - [01/Mar/2006:14:31:36 CET] “GET /favicon.ico HTTP/1.1” 304
    0
  • -> /favicon.ico

#2

alex wrote:

Hi!

But almost at the beginning everything
goes wrong and my application doesn’t work. When I try to open
http://localhost:3000/admin with my Firefox, a blank site comes up. This
is the first mistake. And then the window of my WEBrick shows some
strange error - messages (see below). What’s wrong an what can I do to
fix this problem?

Have you run: “rails depot” followed by “ruby script/generate scaffold
Product Admin” ?

Jim


#3

James B. wrote:

Have you run: “rails depot” followed by “ruby script/generate scaffold
Product Admin” ?

Jim

Yes, I have! I’ve done everything like it is described in the book and I
don’t know where the mistake is!?

ALEX


#4

I found my mistake! IRB was not installed, but now it works without any
problems party!

ALEX