Can I use redirect_to in a view in RoR?

后端 未结 5 1633
闹比i
闹比i 2021-01-04 00:28

In my app, I\'ve got a little box that appears on every page, checking on the status of requests made by the user. If a request is accepted at any time, then the user should

5条回答
  •  萌比男神i
    2021-01-04 00:51

    If you want to use redirect_to from view , do this method:

    syntax : <%controller.redirect_to path %>

    Example:<% controller.redirect_to users_profile_path %>

提交回复
热议问题