Skip to content

Instantly share code, notes, and snippets.

@yoones
Created March 12, 2019 21:41
Show Gist options
  • Save yoones/c78ddff011f3c7a36f982bf0fe1df8cf to your computer and use it in GitHub Desktop.
Save yoones/c78ddff011f3c7a36f982bf0fe1df8cf to your computer and use it in GitHub Desktop.
permit multiple attributes
params.require(:customer).permit(:some_attribute, :yet_another_attribute, contracts: [])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment