Class: SimpleCaptchaController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- SimpleCaptchaController
- Includes:
- SimpleCaptcha::ImageHelpers
- Defined in:
- lib/simple_captcha_controller.rb
Overview
Copyright © 2008 [Sur expressica.com]
Constant Summary
Constants included from SimpleCaptcha::ImageHelpers
SimpleCaptcha::ImageHelpers::DISTORTIONS, SimpleCaptcha::ImageHelpers::IMAGE_STYLES
Instance Method Summary collapse
-
#simple_captcha ⇒ Object
:nodoc.
Methods included from SimpleCaptcha::ImageHelpers
Instance Method Details
#simple_captcha ⇒ Object
:nodoc
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/simple_captcha_controller.rb', line 7 def simple_captcha #:nodoc send_data( generate_simple_captcha_image( :image_style => params[:image_style], :distortion => params[:distortion], :simple_captcha_key => params[:simple_captcha_key]), :type => 'image/jpeg', :disposition => 'inline', :filename => 'simple_captcha.jpg') end |