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

Version Path
volt-0.9.1 spec/apps/kitchen_sink/app/main/controllers/server/simple_http_controller.rb
volt-0.9.1.pre5 spec/apps/kitchen_sink/app/main/controllers/server/simple_http_controller.rb
volt-0.9.1.pre4 spec/apps/kitchen_sink/app/main/controllers/server/simple_http_controller.rb
volt-0.9.1.pre3 spec/apps/kitchen_sink/app/main/controllers/server/simple_http_controller.rb
volt-0.9.1.pre2 spec/apps/kitchen_sink/app/main/controllers/server/simple_http_controller.rb
volt-0.9.1.pre1 spec/apps/kitchen_sink/app/main/controllers/server/simple_http_controller.rb
volt-0.9.0 spec/apps/kitchen_sink/app/main/controllers/server/simple_http_controller.rb
volt-0.9.0.pre7 spec/apps/kitchen_sink/app/main/controllers/server/simple_http_controller.rb
volt-0.9.0.pre6 spec/apps/kitchen_sink/app/main/controllers/server/simple_http_controller.rb
volt-0.9.0.pre5 spec/apps/kitchen_sink/app/main/controllers/server/simple_http_controller.rb
volt-0.9.0.pre4 spec/apps/kitchen_sink/app/main/controllers/server/simple_http_controller.rb