Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ApplicationController < ActionController::Base
- before_filter :authenticate
- def authenticate
- authenticate_or_request_with_http_basic('Police Ready') do |username, password|
- return false #this passes http authentication
- end
- end
- end
- #the http authentication succeeds if I say "return false" but fails if i replace "return false" with "false.. why?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement