activeadmin をセットアップしましたが、ファイルを取り出して、"admin" という名前の assets/stylesheets および assets/javascripts サブフォルダーに配置する必要がありました。これは、スタイルがメイン アプリに継承され、あらゆる種類の問題が発生していたためです。
ここの指示に従いました: http://mrdanadams.com/2011/exclude-active-admin-js-css-rails
Create the folders app/assets/javascripts/admin and app/assets/stylesheets/admin and move the files active_admin.js and active_admin.css.scss into these folders, respectively.
In your app/assets/stylesheets/application.css.scss you will find the following near the top:
*= require_self
*= require_true .
Change this to:
*= require_self
*= require_directory .
Do the same for application.js.
The culprit is active_admin’s asset_registration.rb and application.rb:
def register_default_assets
register_stylesheet 'active_admin.css'
register_javascript 'active_admin.js'
end
To clear these and replace them with the new files, add the following to the bottom of config/initializers/active_admin.rb:
config.clear_stylesheets!
config.register_stylesheet 'admin/active_admin.css'
config.clear_javascripts!
config.register_javascript 'admin/active_admin.js'
これらの手順に従いましたが、管理者がスタイル/js 機能を失い、アプリがまだそれらのファイルを取り込もうとしているようです。
アセットを機能させるためのヘルプを探しており、それらをメインのアプリから除外しています。ありがとうございました!