Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ApplicationController < ActionController::Base
- before_filter :authenticate
- private
- def authenticate
- authenticate_or_request_with_http_basic do |username, password|
- username == 'UserName' && password == 'SecretPassword'
- end
- end
- end
Add Comment
Please, Sign In to add comment