Skip to content

Instantly share code, notes, and snippets.

@EssenceOfChaos
Created September 5, 2017 16:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EssenceOfChaos/60b38bce9bef803b1e866a92f6bcef5c to your computer and use it in GitHub Desktop.
Save EssenceOfChaos/60b38bce9bef803b1e866a92f6bcef5c to your computer and use it in GitHub Desktop.
Whitelisting the 'hstore' parameters
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