Sha256: dd622d7818fcb95167056ec323e22c377f8a5d73eb46af103386ac3caf3981a6
Contents?: true
Size: 422 Bytes
Versions: 26
Compression:
Stored size: 422 Bytes
Contents
module Main class SimpleHttpController < Volt::HttpController def index render text: 'this is just some text' end def show render text: "You had me at #{store._simple_http_tests.first._name.sync}" end def upload uploaded = params._file._tempfile File.open('tmp/uploaded_file', 'wb') { |f| f.write(uploaded.read) } render text: 'Thanks for uploading' end end end
Version data entries
26 entries across 26 versions & 1 rubygems