try a string ''login''
map.root :controller => "Admin::Base", :action =>
''login''
instead of a symbol
map.root :controller => "Admin::Base", :action => :login
On Nov 11, 3:13 am, Jamal Soueidan
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> This is very weird behavior for rails.
>
> 1. When I visit my app
>
> http://localhost:3000/admin/base/login
>
> class Admin::BaseController < ApplicationController
> def login
> render :text => "running"
> end
> end
>
> 2. but when I go herehttp://localhost:3000/
>
> I get error because login.html.erb not found
>
> 3. even though my route looks like this.
>
> map.root :controller => "Admin::Base", :action => :login
>
> Did any face this :S ?
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---