El Sábado, 26 de abril de 2014 14:12:37 Cláudio Forain escribió:
> Im using activescaffold to create a simple model contact
> 
> class Contact < ActiveRecord::Base
> end
> 
> I would like to use simple-captcha in the 'new' action (
> https://github.com/galetahub/simple-captcha).
> 
> It requires me insert a tag in the form_for for the model:
> 
> <%= show_simple_captcha(:object=>"contact") %>
> 
> Since the form is taken care by the AS, is there a way to add this tag
> without having to override the entire view for the 'new' action?
> 
> Thanks in advance.


Add :captcha to config.create.columns, then define captcha_form_column(record, 
options) 
helper which calls show_simple_captcha

-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails Gem" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/activescaffold.
For more options, visit https://groups.google.com/d/optout.

Reply via email to