how can we create partials in active admin for index panel

By Mukesh

I want to create a partials to render some data in index panel for different namespaces for DRY

I am currently writing

 index do
    render 'index', user: :user
column :id
column 'Customer Name', :name
column :mobile
column :recipient_number
column :cash_in_hand do |customer|
  number_to_currency(customer.cash_in_hand, unit: "u20B9", precision: 2)
column "Due Balance" do |customer|
  number_to_currency(customer.due_balance, unit: "u20B9", precision: 2)

Source: Stack Overflow


Share it with your friends!

    Fatal error: Uncaught Exception: 12: REST API is deprecated for versions v2.1 and higher (12) thrown in /home/content/19/9652219/html/wp-content/plugins/seo-facebook-comments/facebook/base_facebook.php on line 1273