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

  • Home
  • SEARCH
  • 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 6157765
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:50:31+00:00 2026-05-23T20:50:31+00:00

Rails Admin was working fine until I installed Devise_Invitable. Now, when I click on

  • 0

Rails Admin was working fine until I installed Devise_Invitable. Now, when I click on Users in Rails Admin I get the following error:

NoMethodError in RailsAdmin::MainsController#list

You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.map

The other models work fine.

I have a hunch that this might be part of the trouble:

https://github.com/sferik/rails_admin/issues/370

as this is part of the devise_invitable

 belongs_to :invited_by, :polymorphic => true

It says the issue is fixed but is there any way I don’t have the most recent rails admin?

gemfile

gem 'rails_admin', :git => 'git://github.com/sferik/rails_admin.git'

Thanks for any ideas.

  • 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-05-23T20:50:33+00:00Added an answer on May 23, 2026 at 8:50 pm

    The answer that has you add has_many :invitees, :class_name => self.class.name, :as => :invited_by to the User model works to get rails_admin working, but I ran into problems deleting and editing. The solution is to change the line you add to the User model to:

    has_many :invitees, :class_name => "User", :as => :invited_by
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've created some resources in my Ruby on Rails application: localhost/admin/books localhost/admin/users localhost/admin/... Now
I'm trying to get an admin interface working in Rails, but I'm having trouble
I am using devise for my users. I recently installed the rails Active Admin
I am working on the admin section of a new rails app and i'm
I am working on an Rails app which has an admin section for setting
I install and configure Active Admin to my rails app. It works fine on
I am working on my first Rails application and want to create an admin
Im working on a simple rails project were users have an attribute called is_admin,
In my Rails 3 project I have: namespace :admin do resources :users end scope
NOTE: Using Rails 3.0.7, Postgresql 8.4.4-1, rake 0.8.7. Trying to get rails testing working.

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.