Getting access to route-generating helpers from a migration

Is there any way to get access to a RESTful named route helper from a
migration.

I’d like to place URLs generated from these routes into a DB table and
wanted to manage the static data by using a migration. So I’d like to
be able to get at the URL generated by something like “posts_url”, for
example.

Is this doable? Is there some way that I can either include an
appropriate module in my migration class or directory interrogate the
Routing class to get this URL?

Thanks,
Wes

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs