新增后能够回到topics的列表,当使用者建立了一片新的topic,或者是编辑即有的topic的时候,

使用者会看到那一片但度的topic的页面,但是对于我们投票城市来说,如果能够会到topics列表会更好。

 

所以,这一步我们将会修改城市的流程,让user新增createtopic或者编辑update topic之后可以回到topics列表

 

 

 

format.html{ redirect_to @topic, notice:"Topic is successfully created.'}

 

gormat.html{redirect_to topics_path, notice:""}

 

posted on 2022-01-23 10:43  石斌15553572995  阅读(15)  评论(0)    收藏  举报