Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class HomeController < ApplicationController
- before_filter :authenticate, except: [:index, :show]
- def authenticate
- authenticate_or_request_with_http_basic('Auth!') do |username, password|
- username == "user" && password == "pass"
- end
- end
- end
Add Comment
Please, Sign In to add comment