Forum: Ruby on Rails Admin controller

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Jamal S. (Guest)
on 2008-11-11 10:13
This is very weird behavior for rails.

1. When I visit my app


class Admin::BaseController < ApplicationController
  def login
    render :text => "running"

2. but when I go here

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 ?
Jeff E. (Guest)
on 2008-11-11 21: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 S. <removed_email_address@domain.invalid>
This topic is locked and can not be replied to.