Admin controller

This is very weird behavior for rails.

  1. When I visit my app


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

  1. but when I go here

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]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs