Skip to content

Commit

Permalink
Avoid require "rubygems" and sudo in README.
Browse files Browse the repository at this point in the history
  • Loading branch information
rkh committed Oct 12, 2010
1 parent a873480 commit a8b23ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions README.jp.rdoc
Expand Up @@ -3,16 +3,15 @@
SinatraはRubyで下記のような最小労力で手早くウェブアプリケーションを作成するためのDSLです。

# myapp.rb
require 'rubygems'
require 'sinatra'
get '/' do
'Hello world!'
end

gemをインストールして動かしてみる。

sudo gem install sinatra
ruby myapp.rb
gem install sinatra
ruby -rubygems myapp.rb

http://localhost:4567 を見る。

Expand Down
5 changes: 2 additions & 3 deletions README.rdoc
Expand Up @@ -4,16 +4,15 @@ Sinatra is a DSL for quickly creating web applications in Ruby with minimal
effort:

# myapp.rb
require 'rubygems'
require 'sinatra'
get '/' do
'Hello world!'
end

Install the gem and run with:

sudo gem install sinatra
ruby myapp.rb
gem install sinatra
ruby -rubygems myapp.rb

View at: http://localhost:4567

Expand Down

0 comments on commit a8b23ca

Please sign in to comment.