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 <[EMAIL PROTECTED]> 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 [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

