Created
September 15, 2011 23:07
-
-
Save tatsuosakurai/1220747 to your computer and use it in GitHub Desktop.
Rubyセミナー資料1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Railsプロジェクトの作成 | |
rails new book_memo | |
# Railsプロジェクトフォルダへ移動 | |
cd book_memo | |
# 必要なGemのインストール | |
bundle | |
# モデルの作成 | |
rails g model book title:string memo:text | |
# 間違えたときには g を destroy にすると生成したファイルを削除しれくれるので便利 | |
# マイグレーション | |
rake db:migrate | |
# Routesの確認 | |
rake routes | |
# コントローラの作成 | |
rails g controller books | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment