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

In Active Admin, all of my models form views seem to refer just one of those models
Rails ActiveAdmin : How to place filters on the top in index action
change css styles of active admin
Active admin install with Rails 4
ActiveAdmin won't save has many and belongs to many field
Truncate data in ActiveAdmin index page
Active Admin: how to set filter label dynamically
How to add an HTML-class to an ActiveAdmin index table
How to use modules to split very long code in active admin?
Downloading all records of a paginated resource in ActiveAdmin
Can you use the Form() command in ActiveAdmin in the content of a custom page?
CollectionAction route being skipped, action treated as ID
Possible to “split” an ActiveAdmin resource between multiple menu items?
Rails: activeadmin, undefined method `per' for #<ActiveRecord::Relation:0x4d15ee0>
Active Admin create form in register_page
ActiveAdmin - how to customize edit action?

Categories

HOME
openxml
focus
seedstack
workflow
windows-10
lvm
openflow
firebase-database
stack-overflow
heuristics
nsstring
csrf
smartgwt
sonicwall
asciimath
jqxgrid
checkout
multiple-tables
spring-shell
yii2-basic-app
neo4j.rb
backtracking
mime-types
device
channel
backendless
high-availability
xdebug
npoi
adapter
tsung
basic-authentication
nic
wampsharp
cordys-opentext
django-crispy-forms
ng-repeat
netapp
coverage.py
doctrine-extensions
daz3d
flume-twitter
skip-lists
algebra
portability
email-forwarding
controllers
researchkit
rational-performance-test
xcode6.4
p6spy
dojo-build
piping
deferred-rendering
odp.net-managed
gwt-syncproxy
cfwheels
android-studio-import
pythonxy
uitest
android-handler
org-babel
flow-js
webproject
quercus
ssmtp
fiware-bosun
maven-shade-plugin
nanomsg
famo.us
xmi
strdup
discovery
grails-2.3
application-server
revmob
coalesce
spiral
asp.net-mvc-3-areas
xmlwriter
jquery-dialog
struts2-s2hibernate
hardcode
mkannotation
azure-acs
rtd
jquery-1.4
airprint
active-record-query
eaccelerator
activestate
j2mepolish
resharper-5.0
main-method
chronic

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App