If you can get the code in the controller, this is often more informative:
raise method(:redirect_to).source_location.inspect
This will show you exactly where the method was defined.
When working with large codebases like this, I usually rely on git pretty hard:
git grep 'def redirect_to'
If all else fails:
git grep 'redirect_to'
You may need to filter more carefully, but often the implementation stands out visually.
The good thing about Ruby code is, as a rule, quite readable, and searching through it is often more enjoyable than in other languages.
source share