Trying to install Administrator Gem in a ruby app Follow all the steps and when trying to open the app having this issue in my terminal :
"NameError (uninitialized constant Admin::Administrate):"
CONTROLLERS > ADMIN
module Admin
class ApplicationController < Administrate::ApplicationController
before_action :authenticate_admin
def authenticate_admin
# TODO Add authentication logic here.
end
Some routes generated:
Rails.application.routes.draw do
namespace :admin do
resources :coaches
resources :coach_profiles
resources :sessions
root to: 'coaches#index'
end
I desinstalled the gem and reinstalled it. not working
Your code looks fine, try restarting your server