Skip to content

Instantly share code, notes, and snippets.

@GRGSIBERIA
Created February 20, 2014 20:36
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 GRGSIBERIA/9122690 to your computer and use it in GitHub Desktop.
Save GRGSIBERIA/9122690 to your computer and use it in GitHub Desktop.
# Never trust parameters from the scary internet, only allow the white list through.
def post_params
params.require(:post).permit(:userid, :file_name, :file_hash)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment