Last Updated: February 25, 2016
·
4.098K
· kyriacos

All path and url helpers in Rails Console

helpers = Rails.application.routes.named_routes.helpers
helpers.map(&:to_s)

1 Response
Add your response

Thanks for posting this factoid. Now all I need is a converter from a path to a helper method name! :)

over 1 year ago ·