Module: TinyCaptcha::FormBuilder::ClassMethods

Defined in:
lib/tiny_captcha/form_builder.rb

Instance Method Summary collapse

Instance Method Details

#tiny_captcha(options = {}) ⇒ Object

<% form_for :post, :url => posts_path do |form| %>

...
<%= form.tiny_captcha :label => "Enter numbers.." %>

<% end %>



21
22
23
24
# File 'lib/tiny_captcha/form_builder.rb', line 21

def tiny_captcha(options = {})
  options.update :object => @object_name
  show_tiny_captcha(objectify_options(options))
end