All, I would like to set up a route that causes a static "index.html" file (in the "public" directory) to be served on a request to an empty URL path (i.e. map.connect '''', ...). Can I do that with Mongrel? Basically, I want the ability to do in Mongrel what I will end up doing in Apache with a rewrite directive. Thanks, Wes -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On 03 May 2007, at 00:44, Wes Gamble wrote:> I would like to set up a route that causes a static "index.html" file > (in the "public" directory) to be served on a request to an empty URL > path (i.e. map.connect '''', ...). > > Can I do that with Mongrel? Basically, I want the ability to do in > Mongrel what I will end up doing in Apache with a rewrite directive.As far as I know, if you have an index.html file in your public folder, Mongrel will serve it as the base url (that''s what it does when you do "rails someapp" and then serve this new app using mongrel on my Powerbook, that''s for sure). Best regards Peter De Berdt --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I assume that you would then remove the map.connect '''' ... from routes.rb? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---