Created
April 13, 2015 07:58
-
-
Save amyroi/47ebb143c0c6903e5d77 to your computer and use it in GitHub Desktop.
strong_parameters + nested_attributes + serialize
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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