简体   繁体   中英

uninitialized constant RailsAdmin (NameError)

I cloned an app from bitbucket.

I ran bundle install

Now when I am trying to run the app with rails s I am getting below error.

/home/project/config/initializers/rails_admin.rb:1:in `': uninitialized constant RailsAdmin (NameError)

Here's what I have in my routes ,

  mount RailsAdmin::Engine => '/admin', as: 'rails_admin'

Please help

I had a similar issue, caused by using the wrong ruby version with rails_admin. In my case I should have been using ruby 1.9.3 for a project that was using rails_admin 0.4.9. Using a newer ruby version resulted in this error.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM