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.
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Deploying Rails" group.
To post to this group, send email to rubyonrails-deployment@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-deployment?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to