Web Development

Active Admin has been one of the most used Administration panel in the Ruby on Rails world. It’s so easy to use. Although, I must admit looking for the right resource for customization is pain.

Here is how to Add Custom Labels to Active Admin Filters

  filter :user_name, as: :string
  filter :user_email, as: :string, label: 'User Email'
  filter :logged_in_time, label: 'Logged In Date'
  filter :logged_out_time, label: 'Logged Out Date'

The filters would automatically use the column name appended by the table name if you are using an associated table’s field. The label field would allow you to add your own custom labels to filter.