Ruby on Rails Thursday, April 20, 2017
I don't think it is an hack what you are doing.--
To actually have routes receiving different types of ids you probably needed to change how those helpers are generated by rails.
That means you might have to monkey patch rails.
The alternative rails is giving you to be able to do this is by doing this: admin_content_path(id: content.id)
So it allows you to pass to override the id passed as argument.
I am sorry but I dont think there is a way around this.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firstname.lastname@example.org.
To post to this group, send email to email@example.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a9b4b875-02c3-4460-a410-f22aede05fd5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Posted by Ruby on Rails at 6:49 AM