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 %>



22
23
24
25
# File 'lib/simple_captcha/form_builder.rb', line 22

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