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.
on 2008-10-30 15:25
on 2008-10-30 17:19
FOUND: I had to delete the file: public/index.html Now it works fine.