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 %>
20 21 22 23 |
# File 'lib/simple_captcha/form_builder.rb', line 20 def simple_captcha( = {}) .update :object => @object_name show_simple_captcha(()) end |