Brian Sammon
2014-Oct-27 19:24 UTC
:to argument to match() -- how is it converted to class/method name
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. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/20141027152450.3f85b1d70bf0cad11b4944c7%40brisammon.fastmail.fm. For more options, visit https://groups.google.com/d/optout.