Sha256: e68761547ad27f41b071233ccd4cff27e965b7aaa07ed774f70f13057d3b0b12
Contents?: true
Size: 416 Bytes
Versions: 11
Compression:
Stored size: 416 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}" 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
11 entries across 11 versions & 1 rubygems