Rails 求助一个 rails guide 上的问题

shangrenzhidao · March 24, 2014 · 1268 hits

网址是:http://guides.rubyonrails.org/getting_started.html

其中在 Security 章节,在 Controller 中加入 http_basic_authenticate_with 就可以对用户进行验证,但是我加上了这段代码之后,在 PostsController 中生效了,在 CommentsController 中却没有生效?我的代码和教程上是一样的。

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