adding items belongs_to relationship to Active Admin
I'm using active admin for my rails app. I have a customer model which belongs_to a department and also belongs_to a delivery_time. In my admin folder I have a customer.rb file for active admin. That file looks like this - ActiveAdmin.register Customer index do |customer| column :department, :sortable => false column :delivery_time, :sortable => false end end Essentially, I'm trying to customise the customer section of active admin to show the name of department they belong to and what delivery time they belong to. The department model has a name and a some other properties - the name of the