2007年4月アーカイブ

カテゴリー:

カテゴリー:

Dump or Slurp YAML Reference Data (and Fixtures) | Ruby on Rails for Newbies

インストール
./script/plugin install http://topfunky.net/svn/plugins/ar_fixtures
# Dump user table to db/users.yml
./script/runner "User.dump_to_file" 
# Dump user table to test/fixtures/users.yml
./script/runner "User.to_fixture"
# Read it back into the database from db/users.yml
./script/runner "User.load_from_file"
# Load fixtures
rake db:fixtures:load

dump_to_fileとto_fixtureでは、作成されるファイルの形式が異なります。to_fixtureは、rake db:fixtures:load でロードできる形式になります。

ちなみに、rake db:fixtures:loadで個々のfixtureを指定するには、
rake db:fixutes:load FIXTURES=users,events
のようにする。

ar_fixturesをインストールすると、rakeタスクに db:fixtures:dumpというのも追加される。
rake db:fixtures:dump MODEL=User

カテゴリー:

カテゴリー:

カテゴリー:

・ActiveTclをインストール
・環境変数 RUBY_TCL_DLL, RUBY_TK_DLL を tcl84.dll, tk84.dll のあるパス に設定する
・テスト実行時に--runnner=tkオプションを付ける

WindowsでのRuby/Tkのインストール

Rubyリファレンスマニュアル - RubyTkFAQ::インストール

カテゴリー:

カテゴリー:

カテゴリー:

■インストール
admin/install.php

マニュアル

Mantis - バグ管理システム -
Mantisの日本語情報

home [Memo (Mantis, PHP etc)]
カスタマイズ方法等

カテゴリー:

カテゴリー: