Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit a8b23ca04b881c9090a555655fdc2152da26564e 1 parent a873480
@rkh rkh authored
Showing with 4 additions and 6 deletions.
  1. +2 −3 README.jp.rdoc
  2. +2 −3 README.rdoc
View
5 README.jp.rdoc
@@ -3,7 +3,6 @@
SinatraはRubyで下記のような最小労力で手早くウェブアプリケーションを作成するためのDSLです。
# myapp.rb
- require 'rubygems'
require 'sinatra'
get '/' do
'Hello world!'
@@ -11,8 +10,8 @@ SinatraはRubyで下記のような最小労力で手早くウェブアプリケ
gemをインストールして動かしてみる。
- sudo gem install sinatra
- ruby myapp.rb
+ gem install sinatra
+ ruby -rubygems myapp.rb
http://localhost:4567 を見る。
View
5 README.rdoc
@@ -4,7 +4,6 @@ Sinatra is a DSL for quickly creating web applications in Ruby with minimal
effort:
# myapp.rb
- require 'rubygems'
require 'sinatra'
get '/' do
'Hello world!'
@@ -12,8 +11,8 @@ effort:
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
Please sign in to comment.
Something went wrong with that request. Please try again.