2011-10-31から1日間の記事一覧

production環境のみダイジェスト認証を有効にする

class ApplicationController < ActionController::Base USERS = { 'naoty' => 'coolguy' } protect_from_forgery before_filter { digest_authentication if Rails.env.production? } private def digest_authentication authenticate_or_request_with_http…