Обычная проверка подлинности только на производстве, например:
В application_controller.rb:
USERNAME = 'foo'
PASSWORD = 'bar
if RAILS_ENV['production']
before_filter :authenticate
end
частный
def authenticate
authenticate_or_request_with_http_basic do |user_name, password|
user_name == USERNAME && password == PASSWORD
end
end