sinatra up and running速記

gem install sinatra
(sinatra-1.4.5, rack-1.5.2)

gem intall thin ( order: Thin-1.6.2 -> Mongrel -> WEBrick)
Hello world!
#ruby server.rb -p port_num
require 'sinatra'
get '/' do
"Hello, world!"
end

http://localhost:4567 ruby


,...
reading..
沒有任何ruby經驗看這本書會比較吃力, 轉讀 Programming Ruby 1.9 & 2.0 中.
相關文章
相關標籤/搜索