[update: by not using rake routes
, just to understand Rails console a little more]
It seems like inside of \"rails console\" for Rails 3, w
Well in Rails 4, I use rake routes
. Is it that you need?
or load up localhost_path/rails/info/routes
in your browser.
helpers = Rails.application.routes.named_routes.helpers
This will get you all the named route methods that were created. Then you can do helpers.map(&:to_s)
, and whatever regex you want to get your foo versions