assuming you''ve setup everything else correctly, try adding a
RewriteBase to MyApp/public/.htaccess, just below the RewriteEngine On
line. I had to do this to get my apps working correctly with an
apache/non-vhosts setup.
RewriteBase /MyApp
hope this helps
Chris
On 10/11/05, David Kessler
<kesslerdn-v+z9hhnkyldeoWH0uzbU5w@public.gmane.org>
wrote:> I used generate/scaffold to create simple CRUD screen that works perfectly
> with Webrick. I wanted to attempt to run the same ROR app on Apache. I
> followed the instructions found at
> http://wiki.rubyonrails.org/rails/pages/Fast+CGI+and+Apache2+for+Windows+XP
> with the alternate ending found at
>
http://wiki.rubyonrails.org/rails/pages/Fast+CGI+and+Apache2+for+Windows+wit
> hout+VirtualHosts. I have gone over these instructions numerous time and I
> am unable to get the app to work correctly. I am getting the following
> on-screen error when I attempt to access the first CRUD page (remember this
> works perfectly on Webrick):
>
>
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
> ::
> NoMethodError in <controller not set>#<action not set>
>
> WARNING: You have a nil object when you probably didn''t expect
it! Odds
> are you
> want an instance of Array instead.
>
> Look in the callstack to see where you''re working with an object
that could
> be nil.
> Investigate your methods and make sure the object is what you expect!
>
> Show framework trace
>
>
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/routin
> g.rb:429:in `recognize!''
> C:/ruby/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/dispatcher.rb:32:in
> `dispatch''
> C:/ruby/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:144:in
> `process_request''
> C:/ruby/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:64:in
> `process!''
> C:/ruby/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:55:in
> `each_cgi''
> C:/ruby/lib/ruby/site_ruby/1.8/fcgi.rb:595:in `each''
> C:/ruby/lib/ruby/site_ruby/1.8/fcgi.rb:595:in `each_cgi''
> C:/ruby/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:55:in
> `process!''
> C:/ruby/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:21:in
> `process!''
> C:/workspace/ProjectManager/public/dispatch.fcgi:24
>
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
> ::
>
> The development.log contains the following:
>
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
> ::
> Processing Base#index (for 127.0.0.1 at Tue Oct 11 05:46:56 Central
Daylight
> Time 2005)
> Parameters: {}
>
>
> NoMethodError (WARNING: You have a nil object when you probably
didn''t
> expect it! Odds are you
> want an instance of Array instead.
>
> Look in the callstack to see where you''re working with an object
that could
> be nil.
> Investigate your methods and make sure the object is what you expect!
> ):
>
>
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/routin
> g.rb:429:in `recognize!''
> C:/ruby/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/dispatcher.rb:32:in
> `dispatch''
> C:/ruby/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:144:in
> `process_request''
> C:/ruby/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:64:in
> `process!''
> C:/ruby/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:55:in
> `each_cgi''
> C:/ruby/lib/ruby/site_ruby/1.8/fcgi.rb:595:in `each''
> C:/ruby/lib/ruby/site_ruby/1.8/fcgi.rb:595:in `each_cgi''
> C:/ruby/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:55:in
> `process!''
> C:/ruby/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/fcgi_handler.rb:21:in
> `process!''
> C:/workspace/ProjectManager/public/dispatch.fcgi:24
>
>
> Rendering
>
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/templa
> tes/rescues/layout.rhtml (500 Internal Error)
>
>
> Request
>
> Parameters: None
>
> Show session dump
>
> --- {}
>
> Response
> Headers: {"cookie"=>[],
"Cache-Control"=>"no-cache"}
>
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
> ::
>
> It appears that it is not recognizing *.rhtml files. I did not see a
> specific setup for this in the instructions on the wiki.
>
>
>
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>