I''ve installed Rails 0.9.3 on Mac OS X and was just embarking on my first project when, with the WebBRICK server running, I pulled up http://localhost:3000/foo/ (where ''foo'' had its respective model and controller generated) to be greeted with the following: LoadError in Foo#index No such file to load -- application.rb script/server:49 This is a plain vanilla project, rake tests run without error, application.rb exists and has accessible permissions for the server, and so forth. What could be causing this frustrating error? Help much appreciated. Framework trace follows below. With thanks in advance, Alex Payne ---------- framework trace: ------------------------------------------------------------------ /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.2.0/lib/ action_controller/support/dependencies.rb:47:in `load'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.2.0/lib/ action_controller/support/dependencies.rb:47:in `require_or_load'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.2.0/lib/ action_controller/support/dependencies.rb:47:in `silence_warnings'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.2.0/lib/ action_controller/support/dependencies.rb:47:in `require_or_load'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.2.0/lib/ action_controller/support/dependencies.rb:17:in `depend_on'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.2.0/lib/ action_controller/support/dependencies.rb:51:in `require_dependency'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.2.0/lib/ action_controller/support/dependencies.rb:51:in `require_dependency'' /usr/local/lib/ruby/gems/1.8/gems/rails-0.9.3/lib/dispatcher.rb:36:in `dispatch'' /Library/WebServer/Documents/blog/public/dispatch.rb:10 /usr/local/lib/ruby/gems/1.8/gems/rails-0.9.3/lib/webrick_server.rb: 101:in `load'' /usr/local/lib/ruby/gems/1.8/gems/rails-0.9.3/lib/webrick_server.rb: 101:in `handle_dispatch'' /usr/local/lib/ruby/gems/1.8/gems/rails-0.9.3/lib/webrick_server.rb:80: in `handle_mapped'' /usr/local/lib/ruby/gems/1.8/gems/rails-0.9.3/lib/webrick_server.rb:34: in `do_GET'' /usr/local/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in `__send__'' /usr/local/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in `service'' /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' /usr/local/lib/ruby/1.8/webrick/server.rb:155:in `start_thread'' /usr/local/lib/ruby/1.8/webrick/server.rb:144:in `start'' /usr/local/lib/ruby/1.8/webrick/server.rb:144:in `start_thread'' /usr/local/lib/ruby/1.8/webrick/server.rb:94:in `start'' /usr/local/lib/ruby/1.8/webrick/server.rb:89:in `each'' /usr/local/lib/ruby/1.8/webrick/server.rb:89:in `start'' /usr/local/lib/ruby/1.8/webrick/server.rb:79:in `start'' /usr/local/lib/ruby/1.8/webrick/server.rb:79:in `start'' /usr/local/lib/ruby/gems/1.8/gems/rails-0.9.3/lib/webrick_server.rb:19: in `dispatch''
I get the same problem as well. On Thu, 6 Jan 2005 23:31:23 -0500, Alexander Payne <al3x-d9d7LvA1F+o@public.gmane.org> wrote:> I''ve installed Rails 0.9.3 on Mac OS X and was just embarking on my > first project when, with the WebBRICK server running, I pulled up > http://localhost:3000/foo/ (where ''foo'' had its respective model and > controller generated) to be greeted with the following: > > LoadError in Foo#index > No such file to load -- application.rb > script/server:49 > > This is a plain vanilla project, rake tests run without error, > application.rb exists and has accessible permissions for the server, > and so forth. What could be causing this frustrating error? Help much > appreciated. Framework trace follows below. > > With thanks in advance, > Alex Payne > > ---------- framework trace: > ------------------------------------------------------------------ > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.2.0/lib/ > action_controller/support/dependencies.rb:47:in `load'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.2.0/lib/ > action_controller/support/dependencies.rb:47:in `require_or_load'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.2.0/lib/ > action_controller/support/dependencies.rb:47:in `silence_warnings'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.2.0/lib/ > action_controller/support/dependencies.rb:47:in `require_or_load'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.2.0/lib/ > action_controller/support/dependencies.rb:17:in `depend_on'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.2.0/lib/ > action_controller/support/dependencies.rb:51:in `require_dependency'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.2.0/lib/ > action_controller/support/dependencies.rb:51:in `require_dependency'' > /usr/local/lib/ruby/gems/1.8/gems/rails-0.9.3/lib/dispatcher.rb:36:in > `dispatch'' > /Library/WebServer/Documents/blog/public/dispatch.rb:10 > /usr/local/lib/ruby/gems/1.8/gems/rails-0.9.3/lib/webrick_server.rb: > 101:in `load'' > /usr/local/lib/ruby/gems/1.8/gems/rails-0.9.3/lib/webrick_server.rb: > 101:in `handle_dispatch'' > /usr/local/lib/ruby/gems/1.8/gems/rails-0.9.3/lib/webrick_server.rb:80: > in `handle_mapped'' > /usr/local/lib/ruby/gems/1.8/gems/rails-0.9.3/lib/webrick_server.rb:34: > in `do_GET'' > /usr/local/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in `__send__'' > /usr/local/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in `service'' > /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' > /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' > /usr/local/lib/ruby/1.8/webrick/server.rb:155:in `start_thread'' > /usr/local/lib/ruby/1.8/webrick/server.rb:144:in `start'' > /usr/local/lib/ruby/1.8/webrick/server.rb:144:in `start_thread'' > /usr/local/lib/ruby/1.8/webrick/server.rb:94:in `start'' > /usr/local/lib/ruby/1.8/webrick/server.rb:89:in `each'' > /usr/local/lib/ruby/1.8/webrick/server.rb:89:in `start'' > /usr/local/lib/ruby/1.8/webrick/server.rb:79:in `start'' > /usr/local/lib/ruby/1.8/webrick/server.rb:79:in `start'' > /usr/local/lib/ruby/gems/1.8/gems/rails-0.9.3/lib/webrick_server.rb:19: > in `dispatch'' > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
I''d really appreciate it if someone could look at this. I''m running OS X (latest version). Running 0.9.3 Rails from gem, and 1.4 and 1.2 of AR and AP. To reproduce: create a new rails installation create a new controller add some action to the controller start the webrick server navigate to the controller/action see error about not finding application.rb On Sun, 9 Jan 2005 11:20:36 -0800, Joe Van Dyk <joevandyk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I get the same problem as well. > > > On Thu, 6 Jan 2005 23:31:23 -0500, Alexander Payne <al3x-d9d7LvA1F+o@public.gmane.org> wrote: > > I''ve installed Rails 0.9.3 on Mac OS X and was just embarking on my > > first project when, with the WebBRICK server running, I pulled up > > http://localhost:3000/foo/ (where ''foo'' had its respective model and > > controller generated) to be greeted with the following: > > > > LoadError in Foo#index > > No such file to load -- application.rb > > script/server:49 > > > > This is a plain vanilla project, rake tests run without error, > > application.rb exists and has accessible permissions for the server, > > and so forth. What could be causing this frustrating error? Help much > > appreciated. Framework trace follows below. > > > > With thanks in advance, > > Alex Payne > > > > ---------- framework trace: > > ------------------------------------------------------------------ > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.2.0/lib/ > > action_controller/support/dependencies.rb:47:in `load'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.2.0/lib/ > > action_controller/support/dependencies.rb:47:in `require_or_load'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.2.0/lib/ > > action_controller/support/dependencies.rb:47:in `silence_warnings'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.2.0/lib/ > > action_controller/support/dependencies.rb:47:in `require_or_load'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.2.0/lib/ > > action_controller/support/dependencies.rb:17:in `depend_on'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.2.0/lib/ > > action_controller/support/dependencies.rb:51:in `require_dependency'' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.2.0/lib/ > > action_controller/support/dependencies.rb:51:in `require_dependency'' > > /usr/local/lib/ruby/gems/1.8/gems/rails-0.9.3/lib/dispatcher.rb:36:in > > `dispatch'' > > /Library/WebServer/Documents/blog/public/dispatch.rb:10 > > /usr/local/lib/ruby/gems/1.8/gems/rails-0.9.3/lib/webrick_server.rb: > > 101:in `load'' > > /usr/local/lib/ruby/gems/1.8/gems/rails-0.9.3/lib/webrick_server.rb: > > 101:in `handle_dispatch'' > > /usr/local/lib/ruby/gems/1.8/gems/rails-0.9.3/lib/webrick_server.rb:80: > > in `handle_mapped'' > > /usr/local/lib/ruby/gems/1.8/gems/rails-0.9.3/lib/webrick_server.rb:34: > > in `do_GET'' > > /usr/local/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in `__send__'' > > /usr/local/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in `service'' > > /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' > > /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:155:in `start_thread'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:144:in `start'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:144:in `start_thread'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:94:in `start'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:89:in `each'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:89:in `start'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:79:in `start'' > > /usr/local/lib/ruby/1.8/webrick/server.rb:79:in `start'' > > /usr/local/lib/ruby/gems/1.8/gems/rails-0.9.3/lib/webrick_server.rb:19: > > in `dispatch'' > > > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > >
Thanks to DHH: Don''t run webrick with the -d option. Not sure why that fixes it, but it does. Joe On Sun, 9 Jan 2005 13:29:58 -0800, Joe Van Dyk <joevandyk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I''d really appreciate it if someone could look at this. > > I''m running OS X (latest version). Running 0.9.3 Rails from gem, and > 1.4 and 1.2 of AR and AP. > > To reproduce: > > create a new rails installation > create a new controller > add some action to the controller > start the webrick server > navigate to the controller/action > see error about not finding application.rb > > > On Sun, 9 Jan 2005 11:20:36 -0800, Joe Van Dyk <joevandyk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > I get the same problem as well. > > > > > > On Thu, 6 Jan 2005 23:31:23 -0500, Alexander Payne <al3x-d9d7LvA1F+o@public.gmane.org> wrote: > > > I''ve installed Rails 0.9.3 on Mac OS X and was just embarking on my > > > first project when, with the WebBRICK server running, I pulled up > > > http://localhost:3000/foo/ (where ''foo'' had its respective model and > > > controller generated) to be greeted with the following: > > > > > > LoadError in Foo#index > > > No such file to load -- application.rb > > > script/server:49 > > > > > > This is a plain vanilla project, rake tests run without error, > > > application.rb exists and has accessible permissions for the server, > > > and so forth. What could be causing this frustrating error? Help much > > > appreciated. Framework trace follows below. > > > > > > With thanks in advance, > > > Alex Payne > > > > > > ---------- framework trace: > > > ------------------------------------------------------------------ > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.2.0/lib/ > > > action_controller/support/dependencies.rb:47:in `load'' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.2.0/lib/ > > > action_controller/support/dependencies.rb:47:in `require_or_load'' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.2.0/lib/ > > > action_controller/support/dependencies.rb:47:in `silence_warnings'' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.2.0/lib/ > > > action_controller/support/dependencies.rb:47:in `require_or_load'' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.2.0/lib/ > > > action_controller/support/dependencies.rb:17:in `depend_on'' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.2.0/lib/ > > > action_controller/support/dependencies.rb:51:in `require_dependency'' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.2.0/lib/ > > > action_controller/support/dependencies.rb:51:in `require_dependency'' > > > /usr/local/lib/ruby/gems/1.8/gems/rails-0.9.3/lib/dispatcher.rb:36:in > > > `dispatch'' > > > /Library/WebServer/Documents/blog/public/dispatch.rb:10 > > > /usr/local/lib/ruby/gems/1.8/gems/rails-0.9.3/lib/webrick_server.rb: > > > 101:in `load'' > > > /usr/local/lib/ruby/gems/1.8/gems/rails-0.9.3/lib/webrick_server.rb: > > > 101:in `handle_dispatch'' > > > /usr/local/lib/ruby/gems/1.8/gems/rails-0.9.3/lib/webrick_server.rb:80: > > > in `handle_mapped'' > > > /usr/local/lib/ruby/gems/1.8/gems/rails-0.9.3/lib/webrick_server.rb:34: > > > in `do_GET'' > > > /usr/local/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in `__send__'' > > > /usr/local/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in `service'' > > > /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' > > > /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' > > > /usr/local/lib/ruby/1.8/webrick/server.rb:155:in `start_thread'' > > > /usr/local/lib/ruby/1.8/webrick/server.rb:144:in `start'' > > > /usr/local/lib/ruby/1.8/webrick/server.rb:144:in `start_thread'' > > > /usr/local/lib/ruby/1.8/webrick/server.rb:94:in `start'' > > > /usr/local/lib/ruby/1.8/webrick/server.rb:89:in `each'' > > > /usr/local/lib/ruby/1.8/webrick/server.rb:89:in `start'' > > > /usr/local/lib/ruby/1.8/webrick/server.rb:79:in `start'' > > > /usr/local/lib/ruby/1.8/webrick/server.rb:79:in `start'' > > > /usr/local/lib/ruby/gems/1.8/gems/rails-0.9.3/lib/webrick_server.rb:19: > > > in `dispatch'' > > > > > > _______________________________________________ > > > Rails mailing list > > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > >