We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi
I have Customer model which has_many Addresses. I'm trying to send params from API client like this:
{"confirm_success_url"=>"", "commit"=>"Register", "email"=>"[email protected]", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "first_name"=>"Matt", "last_name"=>"Dee", "addresses"=>[{"addr_type"=>"home", "line1"=>"47 Westhill rd."}]}.
{"confirm_success_url"=>"", "commit"=>"Register", "email"=>"[email protected]", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "first_name"=>"Matt", "last_name"=>"Dee", "addresses"=>[{"addr_type"=>"home", "line1"=>"47 Westhill rd."}]}
I have tried it also like this
"addresses_attributes"=>{"0"=>{"addr_type"=>"home", "line1"=>"asdf", "line2"=>"asdf", "city"=>"asdf", "post_code"=>"asdf"}}}
"addresses"=>{"addr_type"=>"home", "line1"=>"asdf", "line2"=>"asdf", "city"=>"asdf", "post_code"=>"asdf"}}
I'm not sure if this is an issue or I'm doing it wrong.
The text was updated successfully, but these errors were encountered:
I'm sorry, I didn't release that this is Devise responsibility.
https://github.com/plataformatec/devise#strong-parameters
Sorry, something went wrong.
@swigrid Did you manage to do this? I'm stuck to the same issue.
No branches or pull requests
Hi
I have Customer model which has_many Addresses. I'm trying to send params from API client like this:
{"confirm_success_url"=>"", "commit"=>"Register", "email"=>"[email protected]", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "first_name"=>"Matt", "last_name"=>"Dee", "addresses"=>[{"addr_type"=>"home", "line1"=>"47 Westhill rd."}]}
.I have tried it also like this
"addresses_attributes"=>{"0"=>{"addr_type"=>"home", "line1"=>"asdf", "line2"=>"asdf", "city"=>"asdf", "post_code"=>"asdf"}}}
"addresses"=>{"addr_type"=>"home", "line1"=>"asdf", "line2"=>"asdf", "city"=>"asdf", "post_code"=>"asdf"}}
I'm not sure if this is an issue or I'm doing it wrong.
The text was updated successfully, but these errors were encountered: