URL to Active Admin edit pages

activeadmin, ruby-on-rails

Solution

For all the projects I've used activeadmin on, the edit routes have always been `edit_admin_model`, with a path that looks like `/admin/model/:id/edit`. Given this, I would expect your app to have an `edit_admin_model_url(model_id)` for each model you have an ActiveAdmin file for, that you could use in a link helper when compiling your PDF.

If that doesn't help, could you post the output to `rake routes` for us?

Problem

I'm developing a rails application that administers some data with Active Admin. One of my views exports a PDF that summarizes data in the back-end. I'd like to link each entry in the PDF to the "edit" view in Active Admin associated with that resource. My question is how to get the URL to a specific Active Admin edit page for a model instance. I can't seem to find the URLs using `rake routes` or using other methods I found in the documentation.

Original source