Is there any documentation for how the match command converts the ":to"
argument to a class and method name?
If I have
match '<path>', to: '<sort-of-a-class-name>#<sort-of-a-method-name>',
via: :get
How does it go from <sort-of-a-class-name> to <actual-class-name>, and
more importantly, how do I go in the reverse direction?
I can probably figure this out via trial-and-error, but I'd like to see
docs if there are some, or contribute some docs if not.
This is not really documented anywhere, and tracing through the source is difficult. Within Rails the string inflector methods #classify and #underscore are used to go between snake-case names and camel-cased class and module names.