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