Forum: Rails deployment map.root doesn't work

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
018b3c8f428a528431a2ccd65b4d37e4?d=identicon&s=25 Thierry Delbart (thithi32)
on 2008-10-30 14:25
Hello,

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

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??

Thank.
018b3c8f428a528431a2ccd65b4d37e4?d=identicon&s=25 Thierry Delbart (thithi32)
on 2008-10-30 16:19
FOUND:

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

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