I am working on creating an admin console for my application.
I added admin_controller.rb ... class AdminController < ApplicationController
Then I added resources :admin to my routes.
Then I added a model that is empty, since there is no DB table for admin views, it just reports other tables:
class Admin < ActiveRecord::Base end
In the admin console there will be no model in db.
When I try to access the / admin view, I get an error:
Access denied on index Admin(Table doesn't exist)
source share