From 98bfd0502409f5b41975aae224d05296c0ea173b Mon Sep 17 00:00:00 2001 From: tbuehlmann Date: Sun, 3 Feb 2013 09:30:16 +0100 Subject: Several things. - Using Slim instead of Haml. - Having a before filter for having flash functionality. - Using Bundler. --- views/index.slim | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 views/index.slim (limited to 'views/index.slim') diff --git a/views/index.slim b/views/index.slim new file mode 100644 index 0000000..270f91f --- /dev/null +++ b/views/index.slim @@ -0,0 +1,15 @@ +h1 Sinatra File Upload + +- if @flash + = @flash + +form action='/upload' method='post' enctype='multipart/form-data' + p + input type='file' name='file' + p + input type='submit' value='Upload' +h3 Files +ul + - @files.each do |file| + li + a href='files/#{file}' #{file} -- cgit v1.2.3