I can’t params.require(...).permit(...) the hash a second time. It will only work for the last time.
So if I do params.require(:articles).permit(...) as well as params.require(:tags).permit(...) it will only accept the second expression.
Thank you very much in advance
von Spotz
btw: this is my first post. Is there a way to turn off this red “Check out our new jobs section…” banner in the right bottom corner?
So as the require documentation says, when passed a single key … returns it’s associated values. So yes, it is expected to chunk information that you will not have downstream in the tap chain.
But, “When given an array of keys, the method tries to require each one of them in order. If it succeeds, an array with the respective return values is returned”.
I made a slight modification on your approach and instead of a Hash I take a “new” Action Controller Parameters and give the both objects as parameters to this one.
It seems to work.