I am creating a rails 4 application with admin interface, so I am trying to configure it in the Admin namespace for controllers and views, but my models are separate.
I think I have an administrator model, and I want to know if this can cause any problems.
On my routes I have
namespace :admin do
resources :admins
resources :categories
end
my controllers are on
app/controllers/admin/something_controller.rb
eg:
class Admin::CategoriesController < ApplicationController
My models included application / models / model.rb
The fact is that one of the models is Admin, for example:
class Admin < ActiveRecord::Base
So, I am worried that when I do class Admin::CategoriesController < ApplicationControllerIm spreading from my admin model or something like that.
I do not have
module Admin
end
source
share