Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8978087
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T19:31:29+00:00 2026-06-15T19:31:29+00:00

What I try to archieve I am writing a rails app that is mostly

  • 0

What I try to archieve

I am writing a rails app that is mostly CRUD. I want to have an admin interface so that non-programmers should be able to control the content. I decided to go with the ready-made library rails admin, because it seems to be the one that offers the most of convention > configuration.

What goes wrong

Well, mostly everything.

Everytime I run a command that uses the rails configuration (it seems) it halts and gives me a long error. The errors I get in my shells are posted here if you can understand it better than I do.

If I do another rails command, such as rails g model Admin it fails in the same manner, complaining uninitialized constant Admin (NameError).

This is my Gemfile.

How it got this bad

I was strolling along, whistling and having a jolly time. Created a ruby application, installed Devise and set up the User class with it, scaffolded a few CRUD MVC’s, made a few custom controllers-views. I know that the gem ‘will_paginate’ is in conflict with ‘rails_admin’, so I removed it from my gemfile and instead went with ‘kaminari’.

Who I suspect

Erik. No, I’m sure he’s great. But rails_admin obviously did not play nice with my app. I suspect this has something to do with me not creating an ‘Admin’ model before installing the gem. But I can’t fix it now, since I get theese errors (and I get errors even if I remove rails_admin from the gemfile, do a bundle and then try to rails g).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T19:31:30+00:00Added an answer on June 15, 2026 at 7:31 pm

    Have you removed the rails_admin generated route from config/routes.rb:

    devise_for :admins
    mount RailsAdmin::Engine => '/rails_admin', :as => 'rails_admin'
    

    That is what is causing Devise to look for an Admin model.
    Removing that, along with removing the gem and initializer file should remove the whole thing from your project.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm in the process of writing a simple console app that monitors a particular
I'm writing a program that uses the Qt Graphics View framework. I have subclassed
I am writing a Phonegap app that includes a zip archive in the /assets/www/
I am writing a Python app that runs on my windows machine and I
I have a library that I'm writing which processes keystroke events using the Win32
I'm writing an app with EmberJS v1.0.pre. I have an ArrayController which contains a
I try that a User can be member of several associations. To achieve this
I'm writing a jQuery plugin, and I'm writing it in a non-jquery-community-standard way, mainly
For an application I am writing, I have the need to dynamically load content
I am writing a program that tracks sales for a local business. I wrote

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.