読者です 読者をやめる 読者になる 読者になる

DELAEMON BLOG

Live as if you were to die tomorrow. Learn as if you were to live forever.

Getting Started with Rails

$ rails new blog
$ cd blog/
$ vim config/database.yml #DBの設定。デフォルトはSQLite
$ rake db:create
$ rails generate controller home index
$ rm  public/index.html
$ vim config/routes.rb
-----
  2 #  get "home/index"
  3   root :to => "home#index"
-----
$ rails server