Rails: Basic Authentication with Authlogic
问题 I'm using Authlogic and I would like to implement Basic HTTP Authentication in my controller so I could define which action requires authentication. I know how to do Basic HTTP Authentication authenticate_or_request_with_http_basic an before_filter, but I would like to here from other how to implement it with Authlogic plugin. class ItemsController < ApplicationController before_filter :authenticate , :only => [:index, :create] ... end 回答1: Here is a great screencast that explains, step-by