Forum: Ruby on Rails Admin controller

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
E3513c4edd6810bb4b9914b58da2a2c3?d=identicon&s=25 Jamal Soueidan (jamal)
on 2008-11-11 09:13
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 here
http://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 ?
D69d23d8e811e8ab2a8593380d6ede63?d=identicon&s=25 Jeff Emminger (jemminger)
on 2008-11-11 20:29
(Received via mailing list)
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...@andreas-s.net>
This topic is locked and can not be replied to.