In a Rails app, we can access the route helpers calling methods on
Rails.application.routes.url_helpers or by including the module
But inside an engine, it will not work.
For this we’ve to use the engine’s
Assuming that the engine have a post resource.