Issue with gem administrate 'uninitialized constant Admin::Administrate'

441 Views Asked by At

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

1

There are 1 best solutions below

0
On

Your code looks fine, try restarting your server