Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class AdminController < ApplicationController
- before_filter :authenticate
- def authenticate
- authenticate_or_request_with_http_basic('Administration') do |username, password|
- username == 'admin' && password == 'password'
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement