Class: TinyCaptcha::ImagesController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/tiny_captcha/images_controller.rb

Instance Method Summary collapse

Instance Method Details

#newObject

params:

- object


8
9
10
11
12
13
14
15
16
17
18
# File 'app/controllers/tiny_captcha/images_controller.rb', line 8

def new
  @tiny_captcha_options = generate_tiny_captcha_options(:object => params[:object])

  respond_to do |format|
    format.json {
      render :json => {
        :tiny_captcha_options => @tiny_captcha_options
      }
    }
  end
end