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 8703443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T02:52:11+00:00 2026-06-13T02:52:11+00:00

I have this classes. user: class User < ActiveRecord::Base attr_accessible :email, :name has_many :berichten

  • 0

I have this classes.

user:

class User < ActiveRecord::Base
  attr_accessible :email, :name
  has_many :berichten
end

category:

class Category < ActiveRecord::Base
  attr_accessible :name
  has_many :berichten
end

Berichten :

class Berichten < ActiveRecord::Base
  attr_accessible :bericht, :user
  belongs_to :user
  belongs_to :category
end

I did first : rails generate active_admin:resource users
And I see this output : create app/admin/users.rb

Then I did : ails generate active_admin:resource category
And I see this output :

 home/roelof/tamara/tamara_site/app/admin/users.rb:1:in `<top (required)>': uninitialized constant Users (NameError)
    from /home/roelof/.gem/ruby/1.9.1/gems/activeadmin-0.5.0/lib/active_admin/application.rb:182:in `block in load!'
    from /home/roelof/.gem/ruby/1.9.1/gems/activeadmin-0.5.0/lib/active_admin/application.rb:182:in `each'
    from /home/roelof/.gem/ruby/1.9.1/gems/activeadmin-0.5.0/lib/active_admin/application.rb:182:in `load!'
    from /home/roelof/.gem/ruby/1.9.1/gems/activeadmin-0.5.0/lib/active_admin/application.rb:205:in `routes'
    from /home/roelof/.gem/ruby/1.9.1/gems/activeadmin-0.5.0/lib/active_admin.rb:79:in `routes'
    from /home/roelof/tamara/tamara_site/config/routes.rb:2:in `block in <top (required)>'
    from /home/roelof/.gem/ruby/1.9.1/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:282:in `instance_exec'
    from /home/roelof/.gem/ruby/1.9.1/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:282:in `eval_block'
    from /home/roelof/.gem/ruby/1.9.1/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:260:in `draw'
    from /home/roelof/tamara/tamara_site/config/routes.rb:1:in `<top (required)>'
    from /home/roelof/.gem/ruby/1.9.1/gems/railties-3.2.8/lib/rails/application/routes_reloader.rb:40:in `block in load_paths'
    from /home/roelof/.gem/ruby/1.9.1/gems/railties-3.2.8/lib/rails/application/routes_reloader.rb:40:in `each'
    from /home/roelof/.gem/ruby/1.9.1/gems/railties-3.2.8/lib/rails/application/routes_reloader.rb:40:in `load_paths'
    from /home/roelof/.gem/ruby/1.9.1/gems/railties-3.2.8/lib/rails/application/routes_reloader.rb:16:in `reload!'
    from /home/roelof/.gem/ruby/1.9.1/gems/railties-3.2.8/lib/rails/application.rb:108:in `reload_routes!'
    from /home/roelof/.gem/ruby/1.9.1/gems/activeadmin-0.5.0/lib/active_admin/reloader.rb:34:in `reload!'
    from /home/roelof/.gem/ruby/1.9.1/gems/activeadmin-0.5.0/lib/active_admin/reloader.rb:61:in `block in attach!'
    from /home/roelof/.gem/ruby/1.9.1/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:429:in `_run__3584427286517482665__prepare__2286595675940506716__callbacks'
    from /home/roelof/.gem/ruby/1.9.1/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in `__run_callback'
    from /home/roelof/.gem/ruby/1.9.1/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:385:in `_run_prepare_callbacks'
    from /home/roelof/.gem/ruby/1.9.1/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81:in `run_callbacks'
    from /home/roelof/.gem/ruby/1.9.1/gems/actionpack-3.2.8/lib/action_dispatch/middleware/reloader.rb:74:in `prepare!'
    from /home/roelof/.gem/ruby/1.9.1/gems/actionpack-3.2.8/lib/action_dispatch/middleware/reloader.rb:48:in `prepare!'
    from /home/roelof/.gem/ruby/1.9.1/gems/railties-3.2.8/lib/rails/application/finisher.rb:47:in `block in <module:Finisher>'
    from /home/roelof/.gem/ruby/1.9.1/gems/railties-3.2.8/lib/rails/initializable.rb:30:in `instance_exec'
    from /home/roelof/.gem/ruby/1.9.1/gems/railties-3.2.8/lib/rails/initializable.rb:30:in `run'
    from /home/roelof/.gem/ruby/1.9.1/gems/railties-3.2.8/lib/rails/initializable.rb:55:in `block in run_initializers'
    from /home/roelof/.gem/ruby/1.9.1/gems/railties-3.2.8/lib/rails/initializable.rb:54:in `each'
    from /home/roelof/.gem/ruby/1.9.1/gems/railties-3.2.8/lib/rails/initializable.rb:54:in `run_initializers'
    from /home/roelof/.gem/ruby/1.9.1/gems/railties-3.2.8/lib/rails/application.rb:136:in `initialize!'
    from /home/roelof/.gem/ruby/1.9.1/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30:in `method_missing'
    from /home/roelof/tamara/tamara_site/config/environment.rb:5:in `<top (required)>'
    from /home/roelof/.gem/ruby/1.9.1/gems/railties-3.2.8/lib/rails/application.rb:103:in `require_environment!'
    from /home/roelof/.gem/ruby/1.9.1/gems/railties-3.2.8/lib/rails/commands.rb:25:in `<top (required)>'
    from script/rails:6:in `require'
    from script/rails:6:in `<main>'

How to solve this one?

Roelof

  • 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-13T02:52:12+00:00Added an answer on June 13, 2026 at 2:52 am

    You should do rails generate active_admin:resource user instead of rails generate active_admin:resource users (user vs. users).

    The way you did it, active_admin searches for a Users class which of course doesn’t exist.

    So delete app/admin/users.rb and run the command above.

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

Sidebar

Related Questions

I have this classes. user: class User < ActiveRecord::Base attr_accessible :email, :name has_many :berichten
Have STI classes: class Page < ActiveRecord::Base belongs_to :user end class FirstTypePage < Page
I have the following ActiveRecord classes: class User < ActiveRecord::Base cattr_accessor :current_user has_many :batch_records
I have this classes: public class User { [Key] public Guid UserId { get;
I have this classes interface UserInterface Then abstract class user implements UserInterface Then i
I have a couple classes that can each have comments: class Movie < ActiveRecord::Base
I have this 2 classes: @Entity public class Student extends User { ... @ManyToMany(mappedBy
I have this structure of classes: public class L3Message { public int Number {
I have this application with 2 classes, in the first class I define a
I have this class that have a function to load other classes and create

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.