2008-05-01から1ヶ月間の記事一覧

Caught ActiveRecord::StatementInvalid: SQLite3::BusyException: database is locked: SQL

ActiveRecord で SQLite3 を利用していた場合に以下のエラーが発生しました。 Caught ActiveRecord::StatementInvalid: SQLite3::BusyException: database is locked: SQL /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connecti…

子ページから親ページを更新する

親ページのURLを再実行する。 window.opener.location.href = window.opener.location.href; 親ページのリクエストを再実行する。 window.opener.history.go(0);

Caught ActiveRecord::StatementInvalid: SQLite3::SQLException: SQL logic error or missing database: INSERT INTO (snip)

SQLite3 を ActiveRecord で操作した場合に以下のエラーが発生しました。 Caught ActiveRecord::StatementInvalid: SQLite3::SQLException: SQL logic error or missing database: SQL /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_rec…

chumby Night#00 に行ってきた

久しぶりの恵比寿。 恵比寿タワーカフェは初めて。そして一人。ちょっと早めにタワーカフェへ行ったら、3名で参加していた方達に混ぜてもらい歓談してました。 あざーす。待ちに待った chumby は、ちゃんと電源も入ってTシャツももらえたぞ!と。明日は早速…

Session is not a class (TypeError)

以下のように2つのクラスを利用していて、 ・Hoge::Session::ActiveRecordStore (hoge/sessionactive_record_store.rb) module Hoge module Session class ActiveRecordStore (snip) end end end ・Hoge::Session (hoge/session.rb) require 'hoge/session/…

NoMethodError: undefined method `debug' for nil:NilClass

ActiveRecord のテスト(unit/test)をしていて以下のエラーが発生しました。 test_1(TestSession): NoMethodError: undefined method `debug' for nil:NilClass /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:2313:in `re…