Class: EasyCaptcha::Controller

Inherits:
ActionController::Base
  • Object
show all
Defined in:
lib/easy_captcha/controller.rb

Overview

captcha controller

Instance Method Summary collapse

Instance Method Details

#captchaObject

captcha action send the generated image to browser



5
6
7
# File 'lib/easy_captcha/controller.rb', line 5

def captcha
  send_data generate_captcha, :disposition => 'inline', :type => 'image/png'
end