no index.html file in /public???

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!

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.

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

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.)

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

Craig White wrote:

Jason Bornhoft wrote:

Craig White 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 up

the rails log (production.log) is empty. i think the problem might be w my virtual host setup in apache

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'

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"

After we delete the index.html I think we need to change the routes also Add map.connect '', :controller => "controller_name"

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?

just put the file in public/ and rails will detect it.

Jason Bornhoft wrote: