You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 17, 2017. It is now read-only.
I have no idea if I am doing something wrong or if I am hitting a strange use case that strong_parameters is not even supposed to handle or if it is a strong_parameters issue to begin with.
It does seem like strong_parameters is doing something, because i get a few messages, as expected.
EDIT: After further investigation it does seem strong_parameters and nested attributes related. If i remove nested attributes from my params everything works. Once i put them back in, it silently fails, so I suspect the problem lies somewhere in the way I permit them?
:host_notification_commands_attributes and :service_notification_commands_attributes get posted as an array of objects.
What version of Rails are you using? If you're using Rails 4 of later, you should submit your issues against rails/rails. This is a compatibility gem for Rails versions prior to 4.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have no idea if I am doing something wrong or if I am hitting a strange use case that
strong_parameters
is not even supposed to handle or if it is astrong_parameters
issue to begin with.It does seem like
strong_parameters
is doing something, because i get a few messages, as expected.But absolutely nothing is happening when I do
I enabled mysql query logging to see whats going on, and I don't even see the
UPDATE
orINSERT
query being executed.I have a detailed description of the issue on StackOverflow, but will copy all information into this issue, if needed and if it has something to do with strong_parameters.
http://stackoverflow.com/questions/28059189/unable-to-update-or-create-records-using-post-with-strong-parameters-and-nested
Thank you.
EDIT: After further investigation it does seem strong_parameters and nested attributes related. If i remove nested attributes from my params everything works. Once i put them back in, it silently fails, so I suspect the problem lies somewhere in the way I permit them?
:host_notification_commands_attributes
and:service_notification_commands_attributes
get posted as an array of objects.Am i permitting them correctly?
The text was updated successfully, but these errors were encountered: