原创作者: hideto
阅读:2342次
评论:0条
更新时间:2011-05-26
# products_controller.rb before_filter :authenticate protected def authenticate authenticate_or_request_with_http_basic do |username, password| username == "foo" && password == "bar" end end
评论 共 0 条 请登录后发表评论