activeadmin


uninitialized constant [Active Admin]


I have error message "uninitialized constant Slideapp::Appinfos"
My database have 2 table is appinfo and slideapp.This is code in my model
class Appinfo < ActiveRecord::Base
has_many :slideapps
accepts_nested_attributes_for :slideapps
end
class Slideapp < ActiveRecord::Base
belongs_to :appinfos
end
How do I fix this problem ?
This is unrelated to ActiveAdmin.
Your belongs_to should use the singular form of Appinfo:
class Slideapp < ActiveRecord::Base
belongs_to :appinfo # <= use of singular Appinfo
end
As it is now Rails is trying to autoload the class Appinfos, which doesn't exist.

Related Links

NoMethodError error for search_methods activeadmin
rails concerns - superclass mismatch error with active_admin in gems list
How to filter by “is not” in active admin/ransack
Active Admin image upload with refile
AuthorizationAdapter in ActiveAdmin
ActiveAdmin and Rails Engine. How do you keep the path name the same?
Active admin defining scope for custom page
ActiveAdmin: Can I redirect the user to the index after they create/edit something?
Active admin and Pundit
Sortable for has_many does not sort properly
select2 remove tag_list item
Adding Numeric Range Filtering to ActiveAdmin
undefined method `destroy_user_session_path' for active admin with cancancan and sorcery
Active admin not working in production mode
ActiveAdmin cannot authorize in rails-api project
How can I create an ActiveAdmin filter that will show only objects without a value specified?

Categories

HOME
rust
visual-studio
knockout.js
powerbi
libgdx
gaming
freeradius
dotnetnuke
livecode
paypal-ipn
stacktrace.js
google-play-services
gentelella
flurry
position
gprs
anchor
azure-graph-api
getopenfilename
amazon-elb
complexity-theory
google-cloud-logging
spring-ldap
neo4j.rb
bosun
backtracking
substring
exchange-server-2010
backendless
dnsmasq
copy-protection
series
sca
keyboard-layout
djcelery
python-sounddevice
imgur
cloudera-sentry
notesview
directwrite
icecast
supertest
brightscript
uiautomatorviewer
openstack-glance
winston
patternlab.io
mifos
cefpython
libharu
eclemma
qpixmap
highlighting
utf-16
okta-api
psd
dsa
unhandled
kotlin-android-extensions
prism-4
mxe
python-c-extension
createfile
directorysearcher
phonegap-facebook-plugin
juttle
encryption-symmetric
webmethod
full-text-indexing
maven-central
android-2.3-gingerbread
redpitaya
nodeload
webaii
typesafe-stack
boinc
mousemotionlistener
acitree
delphi-xe4
border-box
hardcode
series-40
radscheduler
formal-semantics
sscli
urchin
principles
self-tracking-entities
source-code-protection
code-camp
word-automation

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App