2009-03-23から1日間の記事一覧

Jpmobile 0.0.4がRails2.3.2で動かなくなってしまった

# ruby script/server => Booting Mongrel => Rails 2.3.2 application starting on http://0.0.0.0:3000 /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:440:in `load_missing_constant': uninitialized const…

Rails界のシティーハンター(Sweeper)

Railsには古くからキャッシュ機構があります。 キャッシュを失効させる便利な機能としてSweeperがあります。古くから Sweeperはこんなの class PostsSweeper < ActionController::Caching::Sweeper observe Post def after_save(post) clear_posts_cache(pos…