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]
精彩评论