Module: SimpleCaptcha::FormBuilder::ClassMethods
- Defined in:
- lib/simple_captcha/form_builder.rb
Instance Method Summary collapse
-
#simple_captcha(options = {}) ⇒ Object
<% form_for :post, :url => posts_path do |form| %> …
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( = {}) .update :object => @object_name show_simple_captcha(()) end |