rails/rails — pull request #8482 by BanzaiMan (2012-12-11 04:08:08+00:00)
Title: Match the controller and path names defensively.

Use `\A` instead of `^`, and make the alteration shorter.

This improves upon #8468.

Thanks for your consideration.