sinatra 是ruby的一个web框架
http://www.sinatrarb.com/
安装(可以使用taobao的镜像)
gem install sinatra
hello world
# hello.rb
require 'sinatra'
get '/' do
'Hello world!'
end
启动
ruby -rubygems first.rb
查看
localhost:4567
sinatra 是ruby的一个web框架
http://www.sinatrarb.com/
安装(可以使用taobao的镜像)
gem install sinatra
hello world
# hello.rb
require 'sinatra'
get '/' do
'Hello world!'
end
启动
ruby -rubygems first.rb
查看
localhost:4567