ubuntu, ror, jQuery, css, website memo
太嫩, 沒啥心得, 用來紀錄每天學的
顯示具有
auth
標籤的文章。
顯示所有文章
顯示具有
auth
標籤的文章。
顯示所有文章
2008年12月2日 星期二
authenticate_or_request_with_http_basic
authenticate_or_request_with_http_basic
before_filter :authenticate, :except => [:index , :show]
private
def authenticate
authenticate_or_request_with_http_basic do |name, password|
name == 'lake' && password == 'flake'
end
end
較舊的文章
首頁
訂閱:
文章 (Atom)