I have seen a lot of samples of Rails code, and I saw two versions of nested attributes in strong params:
params.require(:smth).permit(:a, b: [])
params.require(:smth).permit(:a, { b: [] })
Why do I need to use braces in the second example? Thanks in advance.