Named Routes

How can I either:

  1. Construct a class that can call the named route helper methods?
  • Descending from ActionController:Base doesn’t seem to do it.

Or

  1. Convert a ::Route object into a url or parms for url_for?
  • I can get a route object matching my named path, but how can I
    translate that into a url?

Thanks

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