Class: EasyCaptcha::Controller
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- EasyCaptcha::Controller
- Defined in:
- lib/easy_captcha/controller.rb
Overview
captcha controller
Instance Method Summary collapse
-
#captcha ⇒ Object
captcha action send the generated image to browser.
Instance Method Details
#captcha ⇒ Object
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 |