开发者

Is there best practice on how to highlight the new post after redirect_to?

I wanna hightlig开发者_如何学Pythonht the changed or new post after i redirect_to the show page. I know i can use the flash to make a flag for that.but,it sounds not the rails way. any thought?


You can send additional parameters with redirect_to:

redirect_to item, :highlight_post => new_or_changed_post
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜