Rails3.0-beta 実行コマンド

半年ぶりに更新。

さて、いつの間にかRails3.0-betaが出ているのジャマイカ
といっても、数週間前にインスコしておいて放置。
久々にいじってみる。

どうせならとエッジなRubyにしておく。

ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-mingw32]

とりあえず、
Rails 3.0 リリースノート和訳 - 前編 - おもしろwebサービス開発日記
から、ありがたく使わせてもらい、サンプルアプリを作ってみる。

>rails myapp

この辺は、変わらず。
というか、現時点でなにがどう変わっているのかワカラン。

・・・
・・・・・・・
・・・・・・・・・・・。

実行の仕方がわからん。

ruby script/server

エラーになる・・・・。

そこで、scriptフォルダを覗いてみると、railsファイルしかない。
つーことで、

ruby script/rails

と打ち込んでみる。

Usage: rails COMMAND [ARGS]

The most common rails commands are:
 generate    Generate new code (short-cut alias: "g")
 console     Start the Rails console (short-cut alias: "c")
 server      Start the Rails server (short-cut alias: "s")
 dbconsole   Start a console for the database specified in config/database.yml
             (short-cut alias: "db")

In addition to those, there are:
 application  Generate the Rails application code
 destroy      Undo code generated with "generate"
 benchmarker  See how fast a piece of code runs
 profiler     Get profile information from a piece of code
 plugin       Install a plugin
 runner       Run a piece of code in the application environment

All commands can be run with -h for more information.

そーすか。
さっきのページにも書いてあるし。
引用 1.3 script/* は script/railsに移行した

rails s

だめじゃん(ノ`Д´)ノ彡┻━┻ゴルァ

思考錯誤してみる

ruby script/rails s

動いた。

なんじゃコレ。いいんかこれで。多分なんかパスが通ってないっぽいが・・・。