Created
September 5, 2017 16:14
-
-
Save EssenceOfChaos/60b38bce9bef803b1e866a92f6bcef5c to your computer and use it in GitHub Desktop.
Whitelisting the 'hstore' parameters
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
def user_params | |
params.require(:user).permit(:first_name, :last_name, :email, :phone, :eye_color, :dob, address: [:street_address, :city, :state, :zip]) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment