Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save amyroi/47ebb143c0c6903e5d77 to your computer and use it in GitHub Desktop.
Save amyroi/47ebb143c0c6903e5d77 to your computer and use it in GitHub Desktop.
strong_parameters + nested_attributes + serialize
# model
serialize :body
# controller
def inquiry_params
params.require(:inquiry).permit(:read_at, :inquiry_form_id, inquiry_contents_attributes: [{body: []}, :part_id])
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment