开发者

Ruby on rails: devise :, how can i allow posts/index and posts/show action to all but other actions will be denied

Howw can i allow posts/index a开发者_高级运维nd posts/show action to all but other actions will be denied ?


in your PostsController

before_filter :authenticate_user!, :except => [:index, :show]
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜