Class: Traptcha::CaptchasController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Traptcha::CaptchasController
- Defined in:
- app/controllers/traptcha/captchas_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
4 5 6 7 8 |
# File 'app/controllers/traptcha/captchas_controller.rb', line 4 def show session[:captcha] = generated_captcha.value send_data generated_captcha.to_png, :disposition => 'inline', :type => 'image/png' end |