新手问题 rails 中怎样使用 render 或者 redirect_to 把当前页面变成 404 页面?

gugugupan · October 12, 2012 · Last by QueXuQ replied at October 12, 2012 · 2173 hits

大概是如果用户输入了一个如 /shou/1234567890123456 这样奇奇怪怪的页面我想主动把它跳转到 404 去。这里用 redirect_to 应该怎么用呢= =?

You need to Sign in before reply, if you don't have an account, please Sign up first.