Rails: redirect with params

前端 未结 1 1170
星月不相逢
星月不相逢 2021-02-05 02:15

What\'s the best way to pass some params along with a redirect?

I saw examples that said if you just add them to your redirect hash they would pass along with the reques

相关标签:
1条回答
  • 2021-02-05 02:46

    Try this:

    redirect_to(edit_multiple_items_path(:page =>2), :notice => 'items updated')
    
    0 讨论(0)
提交回复
热议问题