2009-08-01から1日間の記事一覧

ActiveRecordだけ使ってみる

とりあえず適当なテーブルを作っておく。ここはCoCでいっとく。 --test.sqlite3 create table items(id int, key text, value text); insert into items values(1,'test','てすと'); まんつこいだげ確認せばいいびょん。 #spec/item_spec.rb require 'item' …