Skip to content

Undefined method 'all_options_admin_users_path' #3

@davidwparker

Description

@davidwparker

Having issues getting this to work.

Note: we have 3x different namespaces for different Active Admin interfaces. (Admin2, Super, Custom).

admin2/flag.rb

  form do |f|
    f.semantic_errors
    f.inputs do
      f.input :assigned_user, as: :searchable_select, ajax: { resource: User }
      f.input :admin_notes
    end
    f.actions
  end

admin2/user.rb

searchable_select_options(scope: User.all, text_attribute: :username)

When that's setup like that, I get the following error:

undefined method `all_options_admin_users_path' for #<#<Class:0x00007fc178072b50>:0x00007fc178062b88>
Did you mean?  all_options_admin2_users_path
               all_options_admin2_users_url

Suggestions? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions