注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
モデルが以下のようになっていて、削除フラグと未表示フラグの2つがあるとします。 class CreateUsers ... モデルが以下のようになっていて、削除フラグと未表示フラグの2つがあるとします。 class CreateUsers < ActiveRecord::Migration def self.up create_table "users", :force => true do |t| t.column :login, :string t.column :email, :string t.column :age, :integer t.column :deleted, :boolean, :default => false t.column :hidden, :boolean, :default => false end end def self.down drop_table "users" end end こんな感じのときに有効なユーザーの一覧を出すには users=User.find(:al
2007/07/30 リンク