Skip to content

Instantly share code, notes, and snippets.

@abepetrillo
Created May 20, 2016 18:39
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 abepetrillo/2083a5caf24287ce5f5490f666ba7a7a to your computer and use it in GitHub Desktop.
Save abepetrillo/2083a5caf24287ce5f5490f666ba7a7a to your computer and use it in GitHub Desktop.
class DocumentsController < ApplicationController
def create
Document.create(file: params[:file].read)
head :ok
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment