webrat/spec/integration/merb/app/controllers/testing.rb
2009-04-24 14:11:49 -07:00

28 lines
432 B
Ruby

class Testing < Application
def show_form
render
end
def upload
case request.method
when :get then render
when :post then
uploaded_file = params[:uploaded_file]
render [uploaded_file[:filename], uploaded_file[:tempfile].class.name].inspect
end
end
def submit_form
end
def internal_redirect
redirect "/"
end
def external_redirect
redirect "http://google.com"
end
end