Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. class AdminController < ApplicationController
  2. before_filter :authenticate
  3.  
  4. def authenticate
  5. authenticate_or_request_with_http_basic('Administration') do |username, password|
  6. username == 'admin' && password == 'password'
  7. end
  8. end
  9. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement