Sha256: eb34295d8f1861d46659d008f98c4481c378903c1dbb9057229677d21d3a9150

Contents?: true

Size: 343 Bytes

Versions: 88

Compression:

Stored size: 343 Bytes

Contents

class UploadsController < ApplicationController
	caches_page :index
	
	def create
		headers["Content-Type"] = "text/plain"
		render :text =>
			"name 1 = " + params[:upload][:name1] + "\n" +
			"name 2 = " + params[:upload][:name2] + "\n" +
			"data = " + params[:upload][:data].read
	end
	
	def single
		render :text => params[:foo]
	end
end

Version data entries

88 entries across 88 versions & 7 rubygems

Version Path
passenger-4.0.41 test/stub/rails2.3-mycook/app/controllers/uploads_controller.rb
passenger-4.0.40 test/stub/rails2.3-mycook/app/controllers/uploads_controller.rb
passenger-4.0.39 test/stub/rails2.3-mycook/app/controllers/uploads_controller.rb
passenger-4.0.38 test/stub/rails2.3-mycook/app/controllers/uploads_controller.rb
passenger-4.0.37 test/stub/rails2.3-mycook/app/controllers/uploads_controller.rb
passenger-4.0.36 test/stub/rails2.3-mycook/app/controllers/uploads_controller.rb
passenger-4.0.35 test/stub/rails2.3-mycook/app/controllers/uploads_controller.rb
passenger-4.0.34 test/stub/rails2.3-mycook/app/controllers/uploads_controller.rb
passenger-4.0.33 test/stub/rails2.3-mycook/app/controllers/uploads_controller.rb
passenger-4.0.32 test/stub/rails2.3-mycook/app/controllers/uploads_controller.rb
passenger-4.0.31 test/stub/rails2.3-mycook/app/controllers/uploads_controller.rb
passenger-4.0.30 test/stub/rails_apps/2.3/mycook/app/controllers/uploads_controller.rb
passenger-4.0.29 test/stub/rails_apps/2.3/mycook/app/controllers/uploads_controller.rb
passenger-4.0.28 test/stub/rails_apps/2.3/mycook/app/controllers/uploads_controller.rb
passenger-4.0.27 test/stub/rails_apps/2.3/mycook/app/controllers/uploads_controller.rb
passenger-4.0.26 test/stub/rails_apps/2.3/mycook/app/controllers/uploads_controller.rb
passenger-4.0.25 test/stub/rails_apps/2.3/mycook/app/controllers/uploads_controller.rb
passenger-4.0.24 test/stub/rails_apps/2.3/mycook/app/controllers/uploads_controller.rb
passenger-4.0.23 test/stub/rails_apps/2.3/mycook/app/controllers/uploads_controller.rb
passenger-4.0.21 test/stub/rails_apps/2.3/mycook/app/controllers/uploads_controller.rb