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



17
18
19
20
# File 'lib/simple_captcha/form_builder.rb', line 17

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