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

Version Path
volt-0.9.6 spec/apps/kitchen_sink/app/main/controllers/server/simple_http_controller.rb
volt-0.9.6.pre3 spec/apps/kitchen_sink/app/main/controllers/server/simple_http_controller.rb
volt-0.9.6.pre2 spec/apps/kitchen_sink/app/main/controllers/server/simple_http_controller.rb
volt-0.9.6.pre1 spec/apps/kitchen_sink/app/main/controllers/server/simple_http_controller.rb
volt-0.9.5 spec/apps/kitchen_sink/app/main/controllers/server/simple_http_controller.rb
volt-0.9.5.pre12 spec/apps/kitchen_sink/app/main/controllers/server/simple_http_controller.rb
volt-0.9.5.pre11 spec/apps/kitchen_sink/app/main/controllers/server/simple_http_controller.rb
volt-0.9.5.pre9 spec/apps/kitchen_sink/app/main/controllers/server/simple_http_controller.rb
volt-0.9.5.pre8 spec/apps/kitchen_sink/app/main/controllers/server/simple_http_controller.rb
volt-0.9.5.pre7 spec/apps/kitchen_sink/app/main/controllers/server/simple_http_controller.rb
volt-0.9.5.pre6 spec/apps/kitchen_sink/app/main/controllers/server/simple_http_controller.rb
volt-0.9.5.pre5 spec/apps/kitchen_sink/app/main/controllers/server/simple_http_controller.rb
volt-0.9.5.pre4 spec/apps/kitchen_sink/app/main/controllers/server/simple_http_controller.rb
volt-0.9.5.pre3 spec/apps/kitchen_sink/app/main/controllers/server/simple_http_controller.rb
volt-0.9.5.pre2 spec/apps/kitchen_sink/app/main/controllers/server/simple_http_controller.rb
volt-0.9.5.pre1 spec/apps/kitchen_sink/app/main/controllers/server/simple_http_controller.rb
volt-0.9.4 spec/apps/kitchen_sink/app/main/controllers/server/simple_http_controller.rb
volt-0.9.4.pre5 spec/apps/kitchen_sink/app/main/controllers/server/simple_http_controller.rb
volt-0.9.4.pre3 spec/apps/kitchen_sink/app/main/controllers/server/simple_http_controller.rb
volt-0.9.4.pre2 spec/apps/kitchen_sink/app/main/controllers/server/simple_http_controller.rb