Module: TinyCaptcha::FormBuilder::ClassMethods
- Defined in:
- lib/tiny_captcha/form_builder.rb
Instance Method Summary collapse
-
#tiny_captcha(options = {}) ⇒ Object
<% form_for :post, :url => posts_path do |form| %> …
Instance Method Details
#tiny_captcha(options = {}) ⇒ Object
<% form_for :post, :url => posts_path do |form| %>
...
<%= form.tiny_captcha :label => "Enter numbers.." %>
<% end %>
21 22 23 24 |
# File 'lib/tiny_captcha/form_builder.rb', line 21 def tiny_captcha( = {}) .update :object => @object_name show_tiny_captcha(()) end |