Module: SimpleCaptcha::FormBuilder::ClassMethods

Defined in:
lib/simple_captcha/form_builder.rb

Instance Method Summary collapse

Instance Method Details

#simple_captcha(options = {}) ⇒ Object

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

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

<% end %>



20
21
22
23
# File 'lib/simple_captcha/form_builder.rb', line 20

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