rails:active_record
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン | |||
rails:active_record [2024/01/10 11:12] – [nemed_scope] nullpon | rails:active_record [2024/01/10 14:30] (現在) – nullpon | ||
---|---|---|---|
行 146: | 行 146: | ||
検索時は | 検索時は | ||
- | LimitedItem.find(:all) | + | LimitedItem.all |
とすれば、 | とすれば、 | ||
select * from items where type = " | select * from items where type = " | ||
行 159: | 行 159: | ||
class ItemsController | class ItemsController | ||
def index | def index | ||
- | @items = Item.find(:all) | + | @items = Item.all |
end | end | ||
end | end |
rails/active_record.1704885159.txt.gz · 最終更新: 2024/01/10 11:12 by nullpon