My apologies if this is a terrbily newbie question but there is no index.html in my /public. Here is a list of what''s in the directory: 404.html 500.html dispatch.cgi.example dispatch.fcgi.example dispatch.rb.example favicon.ico help images javascripts robots.txt stylesheets themes Thanks in advance! -- 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 -~----------~----~----~----~------~----~------~--~---
Why are you even bothering with it? This is one of the first files I remove when I begin a new application, as the routes will redirect to a controller. On 04/07/2008, at 10:36 AM, Jason Bornhoft wrote:> > My apologies if this is a terrbily newbie question but there is no > index.html in my /public. > > Here is a list of what''s in the directory: > > 404.html 500.html dispatch.cgi.example dispatch.fcgi.example > dispatch.rb.example favicon.ico help images javascripts > robots.txt > stylesheets themes > > > Thanks in advance! > -- > 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 -~----------~----~----~----~------~----~------~--~---
Ryan Bigg wrote:> Why are you even bothering with it? This is one of the first files I > remove when I begin a new application, as the routes will redirect to > a controller.I ask because the site is not loading correctly. Running under apache after a passenger gem install/setup -- 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 -~----------~----~----~----~------~----~------~--~---
I don''t know how you deployed it but if you look in your repository and you have an index.html file there, then check to see if it got copied. (I assume you are using Subversion, git, or something similar to manage / version your code.) On Thu, Jul 3, 2008 at 8:40 PM, Jason Bornhoft < rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Ryan Bigg wrote: > > Why are you even bothering with it? This is one of the first files I > > remove when I begin a new application, as the routes will redirect to > > a controller. > > I ask because the site is not loading correctly. Running under apache > after a passenger gem install/setup > -- > 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 Fri, 2008-07-04 at 03:40 +0200, Jason Bornhoft wrote:> Ryan Bigg wrote: > > Why are you even bothering with it? This is one of the first files I > > remove when I begin a new application, as the routes will redirect to > > a controller. > > I ask because the site is not loading correctly. Running under apache > after a passenger gem install/setup---- the logs are your friend... logs to check - apache ''access logs'', ''error logs'' - and then rails log/development|production - whichever you are trying to dish out. Craig --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Craig White wrote:> On Fri, 2008-07-04 at 03:40 +0200, Jason Bornhoft wrote: >> Ryan Bigg wrote: >> > Why are you even bothering with it? This is one of the first files I >> > remove when I begin a new application, as the routes will redirect to >> > a controller. >> >> I ask because the site is not loading correctly. Running under apache >> after a passenger gem install/setup > ---- > the logs are your friend... > > logs to check - apache ''access logs'', ''error logs'' - and then rails > log/development|production - whichever you are trying to dish out. > > Craigits a prebuilt app for rails called redmine... let me check the logs and see if i can see whats up -- 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 -~----------~----~----~----~------~----~------~--~---
Jason Bornhoft wrote:> Craig White wrote: >> On Fri, 2008-07-04 at 03:40 +0200, Jason Bornhoft wrote: >>> Ryan Bigg wrote: >>> > Why are you even bothering with it? This is one of the first files I >>> > remove when I begin a new application, as the routes will redirect to >>> > a controller. >>> >>> I ask because the site is not loading correctly. Running under apache >>> after a passenger gem install/setup >> ---- >> the logs are your friend... >> >> logs to check - apache ''access logs'', ''error logs'' - and then rails >> log/development|production - whichever you are trying to dish out. >> >> Craig > > its a prebuilt app for rails called redmine... let me check the logs and > see if i can see whats upthe rails log (production.log) is empty. i think the problem might be w my virtual host setup in apache -- 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 -~----------~----~----~----~------~----~------~--~---
you can have or not the index.html in the public directory. if you choose not to use it, then place an empty route in your config/routes.rb file, something like map.connect '''', :controller => ''welcome'' -- 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 -~----------~----~----~----~------~----~------~--~---
> map.connect '''', :controller => ''welcome''even better map.root :controller => ''name'' when you generate a rails app it says: # You can have the root of your site routed with map.root -- just remember to delete public/index.html. map.root :controller => "name" --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
After we delete the index.html I think we need to change the routes also Add map.connect '''', :controller => "controller_name" ---- CJ(JON) -------- On Jul 4, 1:32 pm, "\"Wolas!\"" <jcpen...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > map.connect '''', :controller => ''welcome'' > > even better > > map.root :controller => ''name'' > > when you generate a rails app it says: > > # You can have the root of your site routed with map.root -- just > remember to delete public/index.html. > map.root :controller => "name"--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Web Blogger wrote:> After we delete the index.html I think we need to change the routes > also > Add map.connect '''', :controller => "controller_name" > > ---- > > CJ(JON) > --------How can I configure my site to use an index.html file? -- 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 -~----------~----~----~----~------~----~------~--~---
just put the file in public/ and rails will detect it. Jason Bornhoft wrote:> Web Blogger wrote: >> After we delete the index.html I think we need to change the routes >> also >> Add map.connect '''', :controller => "controller_name" >> >> ---- >> >> CJ(JON) >> -------- > > How can I configure my site to use an index.html file?-- 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 -~----------~----~----~----~------~----~------~--~---