Skip to content

Active Admin sorting and filtering for tables consisting json keys as columns.

Notifications You must be signed in to change notification settings

prasadsurase/active_admin_with_json_field

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

This README would normally document whatever steps are necessary to get the application up and running.

Things you may want to cover:

  • Ruby version

  • ruby 2.2.2

  • rails 4.2.5

  • Replace username and password in config/database.yml with your local database credentials. It uses postgres.

“‘ruby bundle exec rake db:create db:migrate db:seed –trace “`

  • Admin credentials are present in the seeds.rb

Clone active admin and refer it in Gemfile. you can find syntax in Gemfile.

  • Sorting

refer Rails.root/config/initializers/order_clause.rb

  • Filtering

remove ransacker? from lib/active_admin/filters/formtastic_addons.rb#seems_searchable? from local active_admin repo.

for more info refer [Stackoverflow](stackoverflow.com/questions/36546815/custom-filter-on-custom-column-in-activeadmin) and [ActiveAdmin](github.com/activeadmin/activeadmin/issues/4399)

About

Active Admin sorting and filtering for tables consisting json keys as columns.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published