Map.root doesn't work


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



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

Now it works fine.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs