To clean up my code I would like access to the RESTful helpers in my Rails model. Something like:
users_path
etc.
Thanks.
Just to re-open this: For all rails 3+ users including UrlWriter won't work as it's deprecated. What does work though, is this:
include Rails.application.routes.url_helpers
Hope that helps anyone who stumbled onto this like I did.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With