Skip to content

Instantly share code, notes, and snippets.

@tooky
Created September 4, 2008 11:41
Show Gist options
  • Save tooky/8755 to your computer and use it in GitHub Desktop.
Save tooky/8755 to your computer and use it in GitHub Desktop.
def create
only_provides :json
if params[:Filedata]
@photo = Photo.new_from_filedata(params[:Filedata])
if @photo.save
render '', :status => 200
else
raise NotAcceptable
end
else
raise NotAcceptable
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment