2008-03-11から1日間の記事一覧

acts_as_list

順番の制御が楽にできるらしいRailsのacts_as_listだがupdateのコストが高そう… class Hoge < ActiveRecord::Base belongs_to :grouping acts_as_list :scope => :grouping_id end acts_as_listのソース def increment_positions_on_lower_items(position) a…