3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ActiveAdmin で「検索状態」(Current Filters)を非表示にする設定

Posted at

ActiveAdmin の一覧画面のサイドバーには、指定した検索条件が表示される欄がある。

検索項目(filter)や範囲(scope)のラベルは I18n で多言語化が可能だが、「検索状態」の範囲の値は I18n に対応していない。無理やり対応させることも難しそう。

であれば、いっそのこと「検索状態」自体を非表示にしてしまう。

config/initializers/active_admin.rb
ActiveAdmin.setup do |config|
  # Whether to display 'Current Filters' on search screen
  # config.current_filters = true
  config.current_filters = false
end
3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?