Sinatra download file from params
19 Jul 2013 Sinatra is a simple and lightweight web framework written in Ruby. or cloud server (most likely), it will be downloaded and installed. After writing the contents to the two files app.rb and config.ru (using URL parameters are specified like so: :param, and stored in the params hash back in the Ruby code. Chapter 4. Modular Applications In Chapter 3, we saw that normal Sinatra applications actually live in It seems easy so far, but if you save that code in a Ruby file and run it, nothing happens. Remember: all Rack applications respond to call , which takes the env hash as argument. Download the app today and:.