I''m only just learning to use Rails, but this seems like something very out of my control. I used GEM to download and install Rails, then created a new application and a controller and started the WEBrick server. When I try to access the new controller "Test" using http://localhost:3000/test/ I get a "Not Found" error and a great deal of output from the server script indicating what appear to be errors. Is there some kind of known problem with the current Rails release that might explain this? Or possibly something else that I missed that should have been configured? Thanks, Dave
David Hicks wrote:> > I''m only just learning to use Rails, but this seems like something very > out of my control. > > I used GEM to download and install Rails, then created a new application > and a controller and started the WEBrick server. When I try to access > the new controller "Test" using http://localhost:3000/test/ I get a "Not > Found" error and a great deal of output from the server script > indicating what appear to be errors. > > Is there some kind of known problem with the current Rails release that > might explain this? Or possibly something else that I missed that > should have been configured?It probably would have been more helpful to post the details of your error. I don''t know if there is a general problem or not, but I do know that there is something wrong in 0.9.5 that prevents users from being able to complete my ONLamp.com tutorial. For that reason I modified the tutorial instructions to specifically have them install Rails 0.9.4 (plus I don''t have to worry about future rails tutorial invalidating the instructions in the tutorial). As an experiment, you could see if your code works with 0.9.4 by doing the following: gem uninstall rails gem install rails -v 0.9.4 Curt
One of my sentences below should have read: (plus I don''t have to worry about future rails releases invalidating the instructions in the tutorial). Curt Curt Hibbs wrote:> > David Hicks wrote: > > > > I''m only just learning to use Rails, but this seems like something very > > out of my control. > > > > I used GEM to download and install Rails, then created a new application > > and a controller and started the WEBrick server. When I try to access > > the new controller "Test" using http://localhost:3000/test/ I get a "Not > > Found" error and a great deal of output from the server script > > indicating what appear to be errors. > > > > Is there some kind of known problem with the current Rails release that > > might explain this? Or possibly something else that I missed that > > should have been configured? > > It probably would have been more helpful to post the details of > your error. > > I don''t know if there is a general problem or not, but I do know > that there > is something wrong in 0.9.5 that prevents users from being able > to complete > my ONLamp.com tutorial. For that reason I modified the tutorial > instructions > to specifically have them install Rails 0.9.4 (plus I don''t have to worry > about future rails tutorial invalidating the instructions in the > tutorial). > > As an experiment, you could see if your code works with 0.9.4 by doing the > following: > > gem uninstall rails > > gem install rails -v 0.9.4 > > Curt > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > -- > No virus found in this incoming message. > Checked by AVG Anti-Virus. > Version: 7.0.300 / Virus Database: 265.7.4 - Release Date: 1/25/2005 >
Curt, Thanks for the quick reply. I am using your article as a guide to help get me started. I followed your advice about re-installing rails and I still have a similar problem. Here are the details that I get from the server: #<NameError: uninitialized constant Controller> ["/usr/lib/ruby/gems/1.8/gems/actionpack-1.4.0/lib/action_controller/support/dependencies.rb:59:in `const_missing''", "/usr/lib/ruby/gems/1.8/gems/rails-0.9.4/lib/dispatcher.rb:65:in `const_get''", "/usr/lib/ruby/gems/1.8/gems/rails-0.9.4/lib/dispatcher.rb:65:in `controller_class''", "/usr/lib/ruby/gems/1.8/gems/rails-0.9.4/lib/dispatcher.rb:53:in `reset_application''", "/usr/lib/ruby/gems/1.8/gems/rails-0.9.4/lib/dispatcher.rb:44:in `dispatch''", "/home/dhicks/rails/test/public/dispatch.rb:10", "/usr/lib/ruby/gems/1.8/gems/rails-0.9.4/lib/webrick_server.rb:101:in `load''", "/usr/lib/ruby/gems/1.8/gems/rails-0.9.4/lib/webrick_server.rb:101:in `handle_dispatch''", "/usr/lib/ruby/gems/1.8/gems/rails-0.9.4/lib/webrick_server.rb:80:in `handle_mapped''", "/usr/lib/ruby/gems/1.8/gems/rails-0.9.4/lib/webrick_server.rb:34:in `do_GET''", "/usr/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in `__send__''", "/usr/lib/ruby/1.8/webrick/httpservlet/abstract.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.9.4/lib/webrick_server.rb:19:in `dispatch''", "script/server:49"] [2005-01-29 17:31:24] ERROR `/test/'' not found. 127.0.0.1 - - [29/Jan/2005:17:31:24 EST] "GET /test/ HTTP/1.1" 404 275 - -> /test/ Any thoughts? Thanks, David
Did you ever resolve this problem? How did you fire up webrick and what did it say? -Dale On Sat, 29 Jan 2005 17:34:36 -0500, David Hicks <dhicks-4XDk1qkoqj5AfugRpC6u6w@public.gmane.org> wrote:> Curt, > > Thanks for the quick reply. I am using your article as a guide to help > get me started. I followed your advice about re-installing rails and I > still have a similar problem. Here are the details that I get from the > server: > > #<NameError: uninitialized constant Controller> > ["/usr/lib/ruby/gems/1.8/gems/actionpack-1.4.0/lib/action_controller/support/dependencies.rb:59:in > `const_missing''", > "/usr/lib/ruby/gems/1.8/gems/rails-0.9.4/lib/dispatcher.rb:65:in > `const_get''", > "/usr/lib/ruby/gems/1.8/gems/rails-0.9.4/lib/dispatcher.rb:65:in > `controller_class''", > "/usr/lib/ruby/gems/1.8/gems/rails-0.9.4/lib/dispatcher.rb:53:in > `reset_application''", > "/usr/lib/ruby/gems/1.8/gems/rails-0.9.4/lib/dispatcher.rb:44:in > `dispatch''", "/home/dhicks/rails/test/public/dispatch.rb:10", > "/usr/lib/ruby/gems/1.8/gems/rails-0.9.4/lib/webrick_server.rb:101:in > `load''", > "/usr/lib/ruby/gems/1.8/gems/rails-0.9.4/lib/webrick_server.rb:101:in > `handle_dispatch''", > "/usr/lib/ruby/gems/1.8/gems/rails-0.9.4/lib/webrick_server.rb:80:in > `handle_mapped''", > "/usr/lib/ruby/gems/1.8/gems/rails-0.9.4/lib/webrick_server.rb:34:in > `do_GET''", "/usr/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in > `__send__''", "/usr/lib/ruby/1.8/webrick/httpservlet/abstract.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.9.4/lib/webrick_server.rb:19:in > `dispatch''", "script/server:49"] > [2005-01-29 17:31:24] ERROR `/test/'' not found. > 127.0.0.1 - - [29/Jan/2005:17:31:24 EST] "GET /test/ HTTP/1.1" 404 275 > - -> /test/ > > Any thoughts? > Thanks, > David > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- This is my sig. Isn''t it cool....
* Dale K. Hawkins <dkhawk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> [0238 12:38]:> Did you ever resolve this problem? > > How did you fire up webrick and what did it say?This looks like what I got running ''./script/server -d'' : if that''s so, try without the ''-d'', that seemed to help. -- ''When the door hits you in the ass on the way out, clean off the smudge your ass leaves, please'' -- Alien loves Predator Rasputin :: Jack of All Trades - Master of Nuns
On Tue, 1 Feb 2005 13:01:53 +0000, Dick Davies <rasputnik-ogHSZ3ARDZIOXkKaSkYkkl6hYfS7NtTn@public.gmane.org> wrote:> * Dale K. Hawkins <dkhawk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> [0238 12:38]: > > Did you ever resolve this problem? > > > > How did you fire up webrick and what did it say? > > This looks like what I got running ''./script/server -d'' : > if that''s so, try without the ''-d'', that seemed to help. >I got bit by that too. It stopped me cold for about four hours. I posted about it here when it happened. Apparently DHH knows about it, but dunno on the fix status.