We've moved discussions to Discord

Views for Admin Dashboard

Bryan Stewart
I must be missing something here, but I cannot seem to find the proper form for the admin dash version of my model edit page. I just need to tweek the dropdowns so it shows the resources name.

Thanks!
Chris Oliver
Todd Pinkerton
Bryan Stewart -- dunno if you're still struggling with this, but I just solved this by overriding display_resource() in the app/dashboards/#{model}_dashboard.rb 

e.g.: 

  # Overwrite this method to customize how users are displayed
  # across all pages of the admin dashboard.
  #
  def display_resource(user)
    #"User ##{user.id}". #this is the default
    user.name            #this will cause select dropdown to use 'name' 
  end
Bryan Stewart
Thanks for the follow-up, yes indeed I corrected it there myself.
Notifications
You’re not receiving notifications from this thread.