Admin controller

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

  1. but when I go here
    http://localhost:3000/

I get error because login.html.erb not found

  1. even though my route looks like this.

map.root :controller => “Admin::Base”, :action => :login

Did any face this :S ?

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 S. [email protected]