Forum: Ruby on Rails Strange Error

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.
alex (Guest)
on 2006-03-01 15:39
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:in
`require'
        /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:in
`load'
        /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:in
`depend_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:in
`require_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:in
`reset_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:in
`handle_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:in `service'
        /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
        /usr/lib/ruby/1.8/webrick/server.rb:172:in `start_thread'
        /usr/lib/ruby/1.8/webrick/server.rb:161:in `start'
        /usr/lib/ruby/1.8/webrick/server.rb:161:in `start_thread'
        /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
        /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
        /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
        /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
        /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:in
`dispatch'
        /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:in
`require'
        /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:in
`require'
        script/server:3
127.0.0.1 - - [01/Mar/2006:14:31:36 CET] "GET /favicon.ico HTTP/1.1" 304
0
- -> /favicon.ico
James B. (Guest)
on 2006-03-01 19:12
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
Alex (Guest)
on 2006-03-02 11:35
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
Alex (Guest)
on 2006-03-02 12:36
I found my mistake! IRB was not installed, but now it works without any
problems *party*!

ALEX
This topic is locked and can not be replied to.