Permalink
Browse files

Avoid `require "rubygems"` and `sudo` in README.

  • Loading branch information...
1 parent e4e9e65 commit 8465d492aa75a73ecbfbda267e785683da6f3f1b @rkh committed Sep 7, 2010
Showing with 6 additions and 9 deletions.
  1. +2 −3 README.de.rdoc
  2. +2 −3 README.jp.rdoc
  3. +2 −3 README.rdoc
View
@@ -3,16 +3,15 @@
Sinatra ist eine DSL für die rasche Erstellung von Web Anwendungen in Ruby mit minimalen Aufwand:
# myapp.rb
- require 'rubygems'
require 'sinatra'
get '/' do
'Hallo Welt!'
end
Das gem installieren und starten:
- sudo gem install sinatra
- ruby myapp.rb
+ gem install sinatra
+ ruby -rubygems myapp.rb
Aufrufen unter: http://localhost:4567
View
@@ -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 を見る。
View
@@ -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

0 comments on commit 8465d49

Please sign in to comment.