SyntaxFix
Write A Post
Hire A Developer
Questions
This works for Ruby on Rails 3.0 and should be supported by most versions of Ruby on Rails:
request.env['REQUEST_URI']