From 5968b5e5518f2f743cdbfed7d58a4cbe8f0d1e5e Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 10 Nov 2009 16:50:32 -0800 Subject: demo: links to and from the demo site, cleanup output Explain what the user will be seeing. --- examples/rails_app-2.3.4/app/controllers/files_controller.rb | 2 -- examples/rails_app-2.3.4/app/views/files/index.html.erb | 8 +++++++- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'examples/rails_app-2.3.4/app') diff --git a/examples/rails_app-2.3.4/app/controllers/files_controller.rb b/examples/rails_app-2.3.4/app/controllers/files_controller.rb index 4efc115..6509a71 100644 --- a/examples/rails_app-2.3.4/app/controllers/files_controller.rb +++ b/examples/rails_app-2.3.4/app/controllers/files_controller.rb @@ -33,10 +33,8 @@ class FilesController < ApplicationController end size = file.stat.size File.unlink(file.path) - dump = Rack::Utils.escape_html(params.inspect) render :text => "sha1: #{digest.hexdigest}
" \ "size: #{size}
" \ - "params: #{dump}
" \ '' end diff --git a/examples/rails_app-2.3.4/app/views/files/index.html.erb b/examples/rails_app-2.3.4/app/views/files/index.html.erb index b604ee0..fe7cfc5 100644 --- a/examples/rails_app-2.3.4/app/views/files/index.html.erb +++ b/examples/rails_app-2.3.4/app/views/files/index.html.erb @@ -1,7 +1,7 @@ - upr test + upr test, http://upr.bogomips.org/ <%= javascript_include_tag :all %>