LoginSignup
1
0

More than 3 years have passed since last update.

railsでパラメータを付けてredirect_toする一つの方法

Posted at

いろいろかっこいいやり方はあるみたい
https://blog.kozakana.net/2015/10/redirect_to-with-parameter/

ですが、今回自分の状況的に(パラメータも一つだったので)

redirect_url = ENV["HOST"] + "/hoge?h=" + hash
redirect_to redirect_url

って感じでstringで生成して事足りてしまった。
似たようなことで悩んでる人いればご参考までに。

1
0
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
1
0