Tobias Rademacher
2005-May-31 11:19 UTC
[Newbie] NameError uninitialized constant Breakpoint
Hey Folks, I am new to rails. First of all I was really impressed about the simplicy of the framwork. Rails seem to be a very good mix of productivy and a good design. Following a introduction I genereated a simple controler and tried to acced after starting the WebBrick Container. The name of the Controler source file is profile_controller.rb (Classname ProfileController). This class has a simple show method. The test cases succeed when I run the rake script. When I navigate to the URL http://localhost:3000/profile/show I get this error message. #<NameError: uninitialized constant Breakpoint> ["/usr/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/active_support/dependencies.rb:185:in `const_missing''", "/usr/lib/ruby/gems/1.8/gems/rails-0.12.1/lib/dispatcher.rb:54:in `reset_application''", "/usr/lib/ruby/gems/1.8/gems/rails-0.12.1/lib/dispatcher.rb:36:in `dispatch''", "/home/tradem/homepage/public/dispatch.rb:10", "/usr/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/active_support/dependencies.rb:192:in `load''", "/usr/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/active_support/dependencies.rb:192:in `load''", "/usr/lib/ruby/gems/1.8/gems/rails-0.12.1/lib/webrick_server.rb:82:in `handle_dispatch''", "/usr/lib/ruby/gems/1.8/gems/rails-0.12.1/lib/webrick_server.rb:35: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:155:in `start_thread''", "/usr/lib/ruby/1.8/webrick/s erver.rb:144:in `start''", "/usr/lib/ruby/1.8/webrick/server.rb:144:in `start_thread''", "/! usr/lib/ruby/1.8/webrick/server.rb:94:in `start''", "/usr/lib/ruby/1.8/webrick/server.rb:89:in `each''", "/usr/lib/ruby/1.8/webrick/server.rb:89:in `start''", "/usr/lib/ruby/1.8/webrick/server.rb:79:in `start''", "/usr/lib/ruby/1.8/webrick/server.rb:79:in `start''", "/usr/lib/ruby/gems/1.8/gems/rails-0.12.1/lib/webrick_server.rb:21:in `dispatch''", "script/server:48"] [2005-05-31 13:11:01] ERROR `/profile/show/'' not found. 127.0.0.1 - - [31/May/2005:13:11:01 CEST] "GET /profile/show/ HTTP/1.1" 404 283 As I ruby beginner I would say that the code complains about a Breakpoint constant which wasn''t initialized. Is there a misssing dependecy? I installed all depencies of rails using gem and running the system on fedora core 3 with ruby 1.8.2. I appricated any help, words of wisdom, hint or advice you can give ;) Thx a lot toby -- Visit my Weblog @ http://www.jroller.com/page/tradem
AJ Schuster
2005-Jun-23 19:24 UTC
Re: [Newbie] NameError uninitialized constant Breakpoint
This is a VERY late reply, but I just ran into this problem myself. Turns out that irb was not installed properly. For the record, and for those who may have this problem in the future, it can be fixed with a simple yum install irb And all is well. AJS On 5/31/05, Tobias Rademacher <toby-wan-kenobi-S0/GAf8tV78@public.gmane.org> wrote:> Hey Folks, > > I am new to rails. First of all I was really impressed about the simplicy of the framwork. Rails seem to be a very good mix of productivy and a good design. > Following a introduction I genereated a simple controler and tried to acced after starting the WebBrick Container. > The name of the Controler source file is profile_controller.rb (Classname ProfileController). This class has a simple show method. > The test cases succeed when I run the rake script. > > When I navigate to the URL http://localhost:3000/profile/show I get this error message. > > #<NameError: uninitialized constant Breakpoint> > ["/usr/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/active_support/dependencies.rb:185:in `const_missing''", "/usr/lib/ruby/gems/1.8/gems/rails-0.12.1/lib/dispatcher.rb:54:in `reset_application''", "/usr/lib/ruby/gems/1.8/gems/rails-0.12.1/lib/dispatcher.rb:36:in `dispatch''", "/home/tradem/homepage/public/dispatch.rb:10", "/usr/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/active_support/dependencies.rb:192:in `load''", "/usr/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/active_support/dependencies.rb:192:in `load''", "/usr/lib/ruby/gems/1.8/gems/rails-0.12.1/lib/webrick_server.rb:82:in `handle_dispatch''", "/usr/lib/ruby/gems/1.8/gems/rails-0.12.1/lib/webrick_server.rb:35: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:155:in `start_thread''", "/usr/lib/ruby/1.8/webrick/server.rb:144:in `start''", "/usr/lib/ruby/1.8/webrick/server.rb:144:in `start_thread''", "/! > usr/lib/ruby/1.8/webrick/server.rb:94:in `start''", "/usr/lib/ruby/1.8/webrick/server.rb:89:in `each''", "/usr/lib/ruby/1.8/webrick/server.rb:89:in `start''", "/usr/lib/ruby/1.8/webrick/server.rb:79:in `start''", "/usr/lib/ruby/1.8/webrick/server.rb:79:in `start''", "/usr/lib/ruby/gems/1.8/gems/rails-0.12.1/lib/webrick_server.rb:21:in `dispatch''", "script/server:48"] > [2005-05-31 13:11:01] ERROR `/profile/show/'' not found. > 127.0.0.1 - - [31/May/2005:13:11:01 CEST] "GET /profile/show/ HTTP/1.1" 404 283 > > As I ruby beginner I would say that the code complains about a Breakpoint constant which wasn''t initialized. Is there a misssing dependecy? I installed all depencies of rails using gem and running the system on fedora core 3 with ruby 1.8.2. > I appricated any help, words of wisdom, hint or advice you can give ;) > > Thx a lot > toby > > -- > Visit my Weblog @ http://www.jroller.com/page/tradem > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >