Forum: Rails deployment map.root doesn't work

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Thierry D. (Guest)
on 2008-10-30 15:25

I've been trying to set map.root for my site and it doesn't seem to

Here's what I have in my routes.rb:

ActionController::Routing::Routes.draw do |map|

  map.root :controller => 'leagues', :action => 'show', :id => 1

  map.logout '/logout', :controller => 'sessions', :action => 'destroy'
  map.login '/login', :controller => 'sessions', :action => 'new'

The map.root redirection doesn't work.

When I write

map.r '/r', :controller => 'leagues', :action => 'show', :id => 1

the direction works fine (localhost:3000/r).

Does anyone have a clue of what's happening??

Thierry D. (Guest)
on 2008-10-30 17:19

I had to delete the file: public/index.html

Now it works fine.
This topic is locked and can not be replied to.