Hi, I just setup my rails application on apache2, just a very simply controller, and one method /stats/show When go to the root page, I can see the rails default page, but if I go to any other page like stats/show lead me to the 500.html page. What should I do? Thank you very much! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
There''s not allot of information in your post for a very open question... 1) Are you using mod_rails? Mongrel? 2) Have you deleted the public/index.html? 3) Have you set the root route in config/routes.rb? On Jun 8, 11:46 pm, Allan Du <alla...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > I just setup my rails application on apache2, just a very simply > controller, and one method /stats/show > When go to the root page, I can see the rails default page, but if I > go to any other page like stats/show lead me to the 500.html page. > What should I do? Thank you very much!--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Output from your log file (you''re probably in dev mode, so log/ development.log) would be helpful also. On Jun 8, 11:46 pm, Allan Du <alla...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > I just setup my rails application on apache2, just a very simply > controller, and one method /stats/show > When go to the root page, I can see the rails default page, but if I > go to any other page like stats/show lead me to the 500.html page. > What should I do? Thank you very much!--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
> Output from your log file (you''re probably in dev mode, so log/ > development.log) would be helpful also.ignor that.. you''re in production mode. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thank you so much for reply! I''m using mod_rails I deleted public/index.html and used map.connect '''', :controller => ''stats'', :action => ''show'' to route. If I try to use ruby script/sever, every thing works fine, but if I change to use apache2 the 500.html shows again. On Jun 10, 2:00 am, tekwiz <twarl...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> There''s not allot of information in your post for a very open > question... > > 1) Are you using mod_rails? Mongrel? > 2) Have you deleted the public/index.html? > 3) Have you set the root route in config/routes.rb? > > On Jun 8, 11:46 pm, Allan Du <alla...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hi, > > > I just setup my rails application on apache2, just a very simply > > controller, and one method /stats/show > > When go to the root page, I can see the rails default page, but if I > > go to any other page like stats/show lead me to the 500.html page. > > What should I do? Thank you very much!--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---