negative-captcha
negative-captcha copied to clipboard
No nested attributes
I'm using Negative Captcha for a pretty complex form, and had a need to support nested attributes; something in the form of:
= form_for user do |f|
= f.fields_for :details do |ff|
= f.text_field :location
I've cut a branch that lets you do this:
NegativeCaptcha.new fields: [:user, details: [:location]]
Unfortunately, in my project I'm not using your helpers, and because there are not any tests for them I wasn't able to make sure that they work without changing the API.
My code is here: https://github.com/G2Labs-net/negative-captcha/tree/nested-params
Do you know if there is a simpler way to achieve this?