When I use active_admin with tables that have 5000+ records in them everything becomes very slow. How I can optimise it? Does anybody know some plugins which would allow me to load the data asynchronously?
Ruby2.1.4, Rails4.1.7で確認。 Railsで管理画面をつくる際に Active Adminを使うことが多いのですが、毎回手順を調べなおしたりしていたので、ひと通りのカスタマイズ方法をまとめておきます。 結構長くなってしまいました。 今回はサンプルとして、質問と質問に対する回答データを管理画面上で追加、閲覧、編集、削除できるようにしてみます。 今回のカスタマイズでできるようになることは carrierwaveで画像アップロード 日付入力の際にカレンダーから日付選択 Question(親)作成時に、併せてAnswer(子)のデータも登録 の3つです。 最終的に↑の感じの管理画面になります。 テーブル構造は以下のようにします。 ↑ rails-erd を使ってER図を作ってみました。 (NOT NULLの表示が崩れてしまいました) 今回作ったサンプルはgithubに上げてあり
Here at Viget, we've successfully used ActiveAdmin on a number of custom CMS projects. ActiveAdmin is a great help in providing a sensible set of features out-of-the-box, while still allowing heavy customization for great justice. It also has a very opinionated way of doing things, which can make customization a bit tricky (eg. layouts via Arbre, Custom Pages, etc.) After working with ActiveAdmin
I installed ActiveAdmin successfully: My gemfile code: source 'https://rubygems.org' gem 'rails', '3.2.10' # Bundle edge Rails instead: # gem 'rails', :git => 'git://github.com/rails/rails.git' gem 'sqlite3' # Gems used only for assets and not required # in production environments by default. group :assets do gem 'sass-rails', '~> 3.2.3' gem 'coffee-rails', '~> 3.2.1' # See https://github.com/sste
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く