request_uri was deprecated, rails 3.1 works good