Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No nested attributes #41

Open
wheeyls opened this issue Jul 15, 2014 · 0 comments
Open

No nested attributes #41

wheeyls opened this issue Jul 15, 2014 · 0 comments

Comments

@wheeyls
Copy link

wheeyls commented Jul 15, 2014

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant