Skip to content

Instantly share code, notes, and snippets.

@joshuamiller
Created April 14, 2011 16:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshuamiller/919830 to your computer and use it in GitHub Desktop.
Save joshuamiller/919830 to your computer and use it in GitHub Desktop.
class SpreadsheetConverter < Sinatra::Base
post '/convert' do
content_type "application/xls-or-whatever"
convert(params[:spreadsheet])
end
private
def convert(spreadsheet)
# ... do something with the spreadsheet ...
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment