search for: adminapplicationcontrol

Displaying 1 result from an estimated 1 matches for "adminapplicationcontrol".

2012 Apr 02
0
uninitialized constant UserController
...in:boolean, then user having ''admin=true'' can only access it, as you can imagine. But accessing http://localhost:3000/admin/user gives an error, uninitialized constant UserController I have ''controllers/admin/admin_application_controller.rb'' class Admin::AdminApplicationController < ApplicationController before_filter :admin_login_required def admin_login_required if @current_user.admin return true end redirect_to :controller => "/" return false end end also, ''controllers/admin/user_controller.rb'' class Admi...