before_filter :basic_auth_website if Rails.env.development?
def basic_auth_website
nm = 'test'
pw = "test_#{Rails.env}"
authenticate_or_request_with_http_basic("Application") do |name, password|
name == nm && password == pw
end
end
沒有留言:
張貼留言