ForestAdmin / forest-rails

💎 Ruby on Rails agent for Forest Admin to integrate directly to your existing Ruby on Rails backend application.
https://www.forestadmin.com
GNU General Public License v3.0
374 stars 77 forks source link

[Feature request] ForestAdmin UI collection URL helper method #677

Open lostie opened 5 months ago

lostie commented 5 months ago

Expected behaviour

In some of our collection views or smart actions we would like to present a URL link to a specific ForestAdmin page, that might not necessarily be an association of the current collection the user is viewing.

I've had a look at similar questions posted in the community website (just an example) but all seem to suggest to try and form the URL ourselves manually. I've found several issues with that:

It would be very helpful instead if the gem provided some interface that given an instance of a model, it returns the URL for the collection details page taking into account all the variables the URL requires (project, environment, team, etc...):

manufacturer = Manufacturer.last
forest_collection_url(model)

And since the gem should have all this information, it would always generate an up to date URL.

Context

Scra3 commented 5 months ago

Hello @lostie, Thank you for your feedback 🙏 I have forwarded this message to our product board. I'll get back to you as soon as it's been processed.

Have a good time with forestadmin.