-
-
Save shime/2698424 to your computer and use it in GitHub Desktop.
ZR
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'sinatra' | |
require 'rubygems' | |
require 'httparty' | |
require 'net/http' | |
require 'base64' | |
set :dump_errors, false | |
class Representative | |
include HTTParty | |
end | |
get '/' do | |
begin | |
@var = Representative.get('http://0.0.0.0:4569/') | |
erb :index | |
rescue Exception => msg | |
puts msg.message | |
erb :sheet # ili ovdje samo msg.message pa će ti ispisat error message u viewu samo | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment