I want to load the instance method of create from the reqs string(routing term) and then find its source location This is how you would define it in the routes file
get "route_name" => "controller#action"
Typically, you can do this by using the following statement
UsersController.instance_method(:create).source_location
or even "UsersController".constantize.instance_method(:create)
I was wondering if there is an easy way to do this. I know I can expand the slashes and split on the hash to load the instance method, but I am sure there's a quick way given that this is such a common thing in Rails routing