LoginSignup
2
2

More than 5 years have passed since last update.

redirect_to

Posted at

redirect_to はリンク先を指定して強制的に飛ばすメソッドです。

リンク先は 「@〜」となっている場合は link_to と同様の処理となり
「@〜」 の show ルーティング(messages/:id)に飛ばします。

2
2
1

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
2