LoginSignup
2
3

More than 5 years have passed since last update.

Rails4.2でのrequest_uriの挙動

Last updated at Posted at 2015-05-17

request.original_fullpath

  • プロトコル名(http://)を含めたフル URL + パラメータも込み

request.fullpath

  • プロトコル名(http://)を含めたフル URL + パラメータも込み?
  • 1との違い要調査
  • original_fullpath ||= (env["ORIGINAL_FULLPATH"] || fullpath)

request.original_url

  • base_url + original_fullpath(ホスト名以降+上記original_fullpath)

参照

2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3